summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/__init__.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-08-18 18:40:28 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-09-23 15:11:12 -0600
commit3beebbc0164afbbcc2b6840cf56174c6c073bb40 (patch)
tree5eece25d48cd246d78a94e3fcda8c565b6d78258 /numpy/oldnumeric/__init__.py
parent2a1705f4932f446c67074e46bd5fa9098920122d (diff)
downloadnumpy-3beebbc0164afbbcc2b6840cf56174c6c073bb40.tar.gz
DEP: Remove deprecated modules numarray and oldnumeric.
They were deprecated in 1.8 and scheduled for removal in 1.9. Closes #3637.
Diffstat (limited to 'numpy/oldnumeric/__init__.py')
-rw-r--r--numpy/oldnumeric/__init__.py55
1 files changed, 0 insertions, 55 deletions
diff --git a/numpy/oldnumeric/__init__.py b/numpy/oldnumeric/__init__.py
deleted file mode 100644
index 86cdf55f7..000000000
--- a/numpy/oldnumeric/__init__.py
+++ /dev/null
@@ -1,55 +0,0 @@
-"""Don't add these to the __all__ variable though
-
-"""
-from __future__ import division, absolute_import, print_function
-
-import warnings
-
-from numpy import *
-
-_msg = "The oldnumeric module will be dropped in Numpy 1.9"
-warnings.warn(_msg, ModuleDeprecationWarning)
-
-
-def _move_axis_to_0(a, axis):
- if axis == 0:
- return a
- n = len(a.shape)
- if axis < 0:
- axis += n
- axes = list(range(1, axis+1)) + [0,] + list(range(axis+1, n))
- return transpose(a, axes)
-
-# Add these
-from .compat import *
-from .functions import *
-from .precision import *
-from .ufuncs import *
-from .misc import *
-
-from . import compat
-from . import precision
-from . import functions
-from . import misc
-from . import ufuncs
-
-import numpy
-__version__ = numpy.__version__
-del numpy
-
-__all__ = ['__version__']
-__all__ += compat.__all__
-__all__ += precision.__all__
-__all__ += functions.__all__
-__all__ += ufuncs.__all__
-__all__ += misc.__all__
-
-del compat
-del functions
-del precision
-del ufuncs
-del misc
-
-from numpy.testing import Tester
-test = Tester().test
-bench = Tester().bench