diff options
author | Seth Troisi <sethtroisi@google.com> | 2020-01-04 13:23:57 -0800 |
---|---|---|
committer | Seth Troisi <sethtroisi@google.com> | 2020-01-05 13:19:43 -0800 |
commit | 2be9abe7ddf0fb8a3d934f6fe4d37be5ce2e4a5b (patch) | |
tree | 3df9fb0998f46579a27c84e7bdc4aa0323c20d7a /numpy/core/numeric.py | |
parent | c1f1bc9ce8e4e2936e80d9bfafc3d8e03237a84b (diff) | |
download | numpy-2be9abe7ddf0fb8a3d934f6fe4d37be5ce2e4a5b.tar.gz |
MAINT: Remove Python2 newbuffer getbuffer
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index ae3dcd07a..505218a2e 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -19,8 +19,6 @@ from .multiarray import ( min_scalar_type, ndarray, nditer, nested_iters, promote_types, putmask, result_type, set_numeric_ops, shares_memory, vdot, where, zeros, normalize_axis_index) -if sys.version_info[0] < 3: - from .multiarray import newbuffer, getbuffer from . import overrides from . import umath @@ -65,9 +63,6 @@ __all__ = [ 'matmul', 'shares_memory', 'may_share_memory', 'MAY_SHARE_BOUNDS', 'MAY_SHARE_EXACT', 'TooHardError', 'AxisError'] -if sys.version_info[0] < 3: - __all__.extend(['getbuffer', 'newbuffer']) - @set_module('numpy') class ComplexWarning(RuntimeWarning): |