summaryrefslogtreecommitdiff
path: root/numpy/__init__.py
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2020-01-24 14:15:10 +1300
committerMike Taves <mwtoews@gmail.com>2020-01-24 14:15:10 +1300
commitb291d20b9fd42edbcaf37bbc4d30202d1eb48a6e (patch)
tree42e640c4f89eb84e0363b477392c325b6e9dd977 /numpy/__init__.py
parent68224f43d09393c1981bb83ee3c13a5158d2817c (diff)
downloadnumpy-b291d20b9fd42edbcaf37bbc4d30202d1eb48a6e.tar.gz
MAINT/DOC: Remove use of old Python __builtin__, now known as builtins
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r--numpy/__init__.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py
index 73e979a18..00c4a3d78 100644
--- a/numpy/__init__.py
+++ b/numpy/__init__.py
@@ -157,11 +157,8 @@ else:
# Make these accessible from numpy name-space
# but not imported in from numpy import *
# TODO[gh-6103]: Deprecate these
- if sys.version_info[0] >= 3:
- from builtins import bool, int, float, complex, object, str
- unicode = str
- else:
- from __builtin__ import bool, int, float, complex, object, unicode, str
+ from builtins import bool, int, float, complex, object, str
+ unicode = str
from .core import round, abs, max, min
# now that numpy modules are imported, can initialize limits