Revision: 4868
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4868&view=rev
Author:   dsdale
Date:     2008-01-14 05:21:23 -0800 (Mon, 14 Jan 2008)

Log Message:
-----------
minor bugfix in default rcParams

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/__init__.py

Modified: trunk/matplotlib/lib/matplotlib/__init__.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/__init__.py 2008-01-14 13:15:17 UTC (rev 
4867)
+++ trunk/matplotlib/lib/matplotlib/__init__.py 2008-01-14 13:21:23 UTC (rev 
4868)
@@ -561,8 +561,10 @@
 
     fname = matplotlib_fname()
     if not os.path.exists(fname):
+        # this should never happen, default in mpl-data should always be found
         message = 'could not find rc file; returning defaults'
-        ret =  dict([ (key, tup[0]) for key, tup in defaultParams.items()])
+        ret = RcParams([ (key, default) for key, (default, converter) in \
+                        defaultParams.iteritems() ])
         warnings.warn(message)
         return ret
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to