Revision: 8844
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8844&view=rev
Author: mdboom
Date: 2010-12-21 16:08:28 +0000 (Tue, 21 Dec 2010)
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.
|