[Scipy-svn] r6424 - trunk/scipy/io/matlab

scipy-svn at scipy.org scipy-svn at scipy.org
Sat May 29 17:47:52 EDT 2010


Author: matthew.brett at gmail.com
Date: 2010-05-29 16:47:52 -0500 (Sat, 29 May 2010)
New Revision: 6424

Modified:
   trunk/scipy/io/matlab/miobase.py
Log:
RF - remove deprecated ByteOrder class

Modified: trunk/scipy/io/matlab/miobase.py
===================================================================
--- trunk/scipy/io/matlab/miobase.py	2010-05-29 21:47:45 UTC (rev 6423)
+++ trunk/scipy/io/matlab/miobase.py	2010-05-29 21:47:52 UTC (rev 6424)
@@ -296,20 +296,6 @@
     return shape
 
 
-class ByteOrder(object):
-    ''' Namespace for byte ordering '''
-    little_endian = boc.sys_is_le
-    native_code = boc.native_code
-    swapped_code = boc.swapped_code
-    to_numpy_code = boc.to_numpy_code
-
-ByteOrder = np.deprecate(ByteOrder, message="""
-We no longer use the ByteOrder class, and deprecate it; we will remove
-it in future versions of scipy.  Please use the
-scipy.io.matlab.byteordercodes module instead.
-""")
-
-
 class MatVarReader(object):
     ''' Abstract class defining required interface for var readers'''
     def __init__(self, file_reader):
@@ -374,7 +360,7 @@
 
     def guess_byte_order(self):
         ''' As we do not know what file type we have, assume native '''
-        return ByteOrder.native_code
+        return boc.native_code
 
     def end_of_stream(self):
         b = self.mat_stream.read(1)




More information about the Scipy-svn mailing list