diff options
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r-- | numpy/__init__.py | 7 |
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 |