[Scipy-svn] r2657 - trunk/Lib/io

scipy-svn at scipy.org scipy-svn at scipy.org
Wed Jan 31 07:02:16 CST 2007


Author: matthew.brett at gmail.com
Date: 2007-01-31 07:02:13 -0600 (Wed, 31 Jan 2007)
New Revision: 2657

Modified:
   trunk/Lib/io/__init__.py
   trunk/Lib/io/fopen.py
Log:
Removed fopen from default import, deprecate in favor of npfile

Modified: trunk/Lib/io/__init__.py
===================================================================
--- trunk/Lib/io/__init__.py	2007-01-31 02:25:32 UTC (rev 2656)
+++ trunk/Lib/io/__init__.py	2007-01-31 13:02:13 UTC (rev 2657)
@@ -8,7 +8,6 @@
 from numpyio import packbits, unpackbits, bswap, fread, fwrite, \
      convert_objectarray
 from mio import *
-from fopen import *
 from npfile import npfile
 from recaster import sctype_attributes, Recaster
 from array_import import *

Modified: trunk/Lib/io/fopen.py
===================================================================
--- trunk/Lib/io/fopen.py	2007-01-31 02:25:32 UTC (rev 2656)
+++ trunk/Lib/io/fopen.py	2007-01-31 13:02:13 UTC (rev 2657)
@@ -8,6 +8,10 @@
 from numpy import *
 import numpyio
 
+import warnings
+warnings.warn('fopen module is deprecated, please use npfile instead',
+              DeprecationWarning, stacklevel=2)
+
 LittleEndian = (sys.byteorder == 'little')
 
 __all__ = ['fopen']



More information about the Scipy-svn mailing list