From 1c58504eec43f9ba18ac835131fed496fb59772d Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Thu, 26 Mar 2020 17:50:20 +0000 Subject: MAINT: simplify code that assumes str/unicode and int/long are different types (#15816) Cleanup from the dropping of python 2 --- numpy/lib/user_array.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'numpy/lib/user_array.py') diff --git a/numpy/lib/user_array.py b/numpy/lib/user_array.py index 9c266fd6b..d5c2555b4 100644 --- a/numpy/lib/user_array.py +++ b/numpy/lib/user_array.py @@ -11,7 +11,6 @@ from numpy.core import ( bitwise_xor, invert, less, less_equal, not_equal, equal, greater, greater_equal, shape, reshape, arange, sin, sqrt, transpose ) -from numpy.compat import long class container: @@ -196,9 +195,6 @@ class container: def __int__(self): return self._scalarfunc(int) - def __long__(self): - return self._scalarfunc(long) - def __hex__(self): return self._scalarfunc(hex) -- cgit v1.2.1