[pypy-svn] r71802 - pypy/trunk/pypy/translator/platform

arigo at codespeak.net arigo at codespeak.net
Fri Mar 5 15:29:13 CET 2010


Author: arigo
Date: Fri Mar  5 15:29:11 2010
New Revision: 71802

Modified:
   pypy/trunk/pypy/translator/platform/__init__.py
Log:
Fix this.  'Darwin' is not even imported.


Modified: pypy/trunk/pypy/translator/platform/__init__.py
==============================================================================
--- pypy/trunk/pypy/translator/platform/__init__.py	(original)
+++ pypy/trunk/pypy/translator/platform/__init__.py	Fri Mar  5 15:29:11 2010
@@ -181,13 +181,11 @@
 elif sys.platform == 'darwin':
     from pypy.translator.platform.darwin import Darwin_i386, Darwin_x86_64
     import platform
-    if platform.machine() == 'i386':
-        if sys.maxint <= 2147483647:
-            host_factory = Darwin_i386
-        else:
-            host_factory = Darwin_x86_64
+    assert platform.machine() in ('i386', 'x86_64')
+    if sys.maxint <= 2147483647:
+        host_factory = Darwin_i386
     else:
-        host_factory = Darwin
+        host_factory = Darwin_x86_64
 elif sys.platform == 'freebsd7':
     from pypy.translator.platform.freebsd7 import Freebsd7, Freebsd7_64
     import platform



More information about the Pypy-commit mailing list