From 2be9abe7ddf0fb8a3d934f6fe4d37be5ce2e4a5b Mon Sep 17 00:00:00 2001 From: Seth Troisi Date: Sat, 4 Jan 2020 13:23:57 -0800 Subject: MAINT: Remove Python2 newbuffer getbuffer --- numpy/core/numeric.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'numpy/core/numeric.py') 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): -- cgit v1.2.1