[Scipy-svn] r3670 - branches/io_new
scipy-svn at scipy.org
scipy-svn at scipy.org
Sat Dec 15 17:58:24 EST 2007
Author: brian.hawthorne
Date: 2007-12-15 16:58:21 -0600 (Sat, 15 Dec 2007)
New Revision: 3670
Modified:
branches/io_new/__init__.py
Log:
more deprecation stubs
Modified: branches/io_new/__init__.py
===================================================================
--- branches/io_new/__init__.py 2007-12-15 22:39:53 UTC (rev 3669)
+++ branches/io_new/__init__.py 2007-12-15 22:58:21 UTC (rev 3670)
@@ -4,8 +4,18 @@
from info import __doc__
+# snip on----- DELETE after numpy.deprecate_with_doc is available
+import numpy
+numpy.deprecate_with_doc = lambda doc: (lambda func: func)
+# snip off---- DELETE after numpy.deprecate_with_doc is available
+
+from numpy deprecate_with_doc
+
from numpyio import packbits, unpackbits, bswap, fread, fwrite, \
convert_objectarray
+fread = deprecate_with_doc('')(fread)
+fwrite = deprecate_with_doc('')(fwrite)
+bswap = deprecate_with_doc('')(bswap)
# matfile read and write
from matlab.mio import loadmat, savemat
More information about the Scipy-svn
mailing list