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.

------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to