From: <ds...@us...> - 2008-01-14 13:21:30
|
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. |