Revision: 8844 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8844&view=rev Author: mdboom Date: 2010年12月21日 16:08:28 +0000 (2010年12月21日) Log Message: ----------- [3138764] Small speed fix (submitted by notmuchtotell) Modified Paths: -------------- branches/v1_0_maint/lib/matplotlib/__init__.py Modified: branches/v1_0_maint/lib/matplotlib/__init__.py =================================================================== --- branches/v1_0_maint/lib/matplotlib/__init__.py 2010年12月17日 18:27:11 UTC (rev 8843) +++ branches/v1_0_maint/lib/matplotlib/__init__.py 2010年12月21日 16:08:28 UTC (rev 8844) @@ -637,7 +637,7 @@ def __setitem__(self, key, val): try: - if key in _deprecated_map.keys(): + if key in _deprecated_map: alt = _deprecated_map[key] warnings.warn(self.msg_depr % (key, alt)) key = alt @@ -652,7 +652,7 @@ See rcParams.keys() for a list of valid parameters.' % (key,)) def __getitem__(self, key): - if key in _deprecated_map.keys(): + if key in _deprecated_map: alt = _deprecated_map[key] warnings.warn(self.msg_depr % (key, alt)) key = alt This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8870 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8870&view=rev Author: jdh2358 Date: 2011年01月02日 17:53:33 +0000 (2011年1月02日) Log Message: ----------- bumped version number to 1.0.1rc Modified Paths: -------------- branches/v1_0_maint/lib/matplotlib/__init__.py Modified: branches/v1_0_maint/lib/matplotlib/__init__.py =================================================================== --- branches/v1_0_maint/lib/matplotlib/__init__.py 2011年01月02日 15:09:27 UTC (rev 8869) +++ branches/v1_0_maint/lib/matplotlib/__init__.py 2011年01月02日 17:53:33 UTC (rev 8870) @@ -99,7 +99,7 @@ """ from __future__ import generators -__version__ = '1.0.0' +__version__ = '1.0.1rc1' __revision__ = '$Revision$' __date__ = '$Date$' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8907 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8907&view=rev Author: efiring Date: 2011年01月12日 08:04:06 +0000 (2011年1月12日) Log Message: ----------- Backport 8657 from trunk; patch by C. Gohlke; closes 3151544 Modified Paths: -------------- branches/v1_0_maint/lib/matplotlib/__init__.py Modified: branches/v1_0_maint/lib/matplotlib/__init__.py =================================================================== --- branches/v1_0_maint/lib/matplotlib/__init__.py 2011年01月12日 07:53:37 UTC (rev 8906) +++ branches/v1_0_maint/lib/matplotlib/__init__.py 2011年01月12日 08:04:06 UTC (rev 8907) @@ -904,10 +904,11 @@ if 'matplotlib.backends' in sys.modules: if warn: warnings.warn(_use_error_msg) return - arg = arg.lower() if arg.startswith('module://'): name = arg else: + # Lowercase only non-module backend names (modules are case-sensitive) + arg = arg.lower() be_parts = arg.split('.') name = validate_backend(be_parts[0]) if len(be_parts) > 1: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.