Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r55480:215618f03706
Date: 2012-06-07 15:45 +0200
http://bitbucket.org/pypy/pypy/changeset/215618f03706/

Log:    make pypy importable in python3; this fixes
        test_app_main.test_options_i_m, which try to import
        pypy.translator.goal.test2.mymodule

diff --git a/pypy/__init__.py b/pypy/__init__.py
--- a/pypy/__init__.py
+++ b/pypy/__init__.py
@@ -6,7 +6,7 @@
 # When all tests work, this branch will be merged
 # and the branch stage 2 is started, where we remove this patch.
 import sys
-if hasattr(sys, "maxsize"):
+if hasattr(sys, "maxint") and hasattr(sys, "maxsize"):
     if sys.maxint != sys.maxsize:
         sys.maxint = sys.maxsize
         import warnings
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to