Revision: 6845
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6845&view=rev
Author:   jdh2358
Date:     2009-01-28 20:39:18 +0000 (Wed, 28 Jan 2009)

Log Message:
-----------
changed the default file handle to open in universal mode

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

Modified: trunk/matplotlib/lib/matplotlib/cbook.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/cbook.py    2009-01-28 17:55:07 UTC (rev 
6844)
+++ trunk/matplotlib/lib/matplotlib/cbook.py    2009-01-28 20:39:18 UTC (rev 
6845)
@@ -302,7 +302,7 @@
     except TypeError: return False
     else: return True
 
-def to_filehandle(fname, flag='r', return_opened=False):
+def to_filehandle(fname, flag='rU', return_opened=False):
     """
     *fname* can be a filename or a file handle.  Support for gzipped
     files is automatic, if the filename ends in .gz.  *flag* is a


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

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to