[pypy-commit] pypy default: cleanup more imports

bdkearns noreply at buildbot.pypy.org
Tue Oct 15 12:26:39 CEST 2013


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r67392:8430f7d32663
Date: 2013-10-15 05:11 -0400
http://bitbucket.org/pypy/pypy/changeset/8430f7d32663/

Log:	cleanup more imports

diff --git a/lib_pypy/numpypy/__init__.py b/lib_pypy/numpypy/__init__.py
--- a/lib_pypy/numpypy/__init__.py
+++ b/lib_pypy/numpypy/__init__.py
@@ -1,10 +1,11 @@
-import core
-from core import *
-import lib
-from lib import *
+from . import core
+from .core import *
+from . import lib
+from .lib import *
 
 from __builtin__ import bool, int, long, float, complex, object, unicode, str
-from core import abs, max, min
+
+from .core import round, abs, max, min
 
 __version__ = '1.7.0'
 
@@ -41,11 +42,9 @@
     return d
 
 
-
 __all__ = ['__version__', 'get_include']
 __all__ += core.__all__
 __all__ += lib.__all__
+
 #import sys
 #sys.modules.setdefault('numpy', sys.modules['numpypy'])
-
-
diff --git a/lib_pypy/numpypy/lib/__init__.py b/lib_pypy/numpypy/lib/__init__.py
--- a/lib_pypy/numpypy/lib/__init__.py
+++ b/lib_pypy/numpypy/lib/__init__.py
@@ -1,11 +1,12 @@
-import function_base
-from function_base import *
-import shape_base
-from shape_base import *
-import twodim_base
-from twodim_base import *
+from __future__ import division, absolute_import, print_function
 
-__all__ = []
+import math
+
+from .function_base import *
+from .shape_base import *
+from .twodim_base import *
+
+__all__ = ['math']
 __all__ += function_base.__all__
 __all__ += shape_base.__all__
 __all__ += twodim_base.__all__


More information about the pypy-commit mailing list