SourceForge logo
SourceForge logo
Menu

SF.net SVN: matplotlib:[8844] branches/v1_0_maint/lib/matplotlib/__init__. py

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.

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /