Author: Alex Gaynor <[email protected]>
Branch: 
Changeset: r62373:46b9ff612805
Date: 2013-03-16 14:27 -0700
http://bitbucket.org/pypy/pypy/changeset/46b9ff612805/

Log:    Fix translation.

diff --git a/rpython/rlib/rmmap.py b/rpython/rlib/rmmap.py
--- a/rpython/rlib/rmmap.py
+++ b/rpython/rlib/rmmap.py
@@ -13,6 +13,7 @@
 _POSIX = os.name == "posix"
 _MS_WINDOWS = os.name == "nt"
 _LINUX = "linux" in sys.platform
+_DARWIN = sys.platform == "darwin"
 _64BIT = "64bit" in platform.architecture()[0]
 _ARM = platform.machine().startswith('arm')
 _PPC = platform.machine().startswith('ppc')
@@ -680,7 +681,7 @@
         else:
             m.fd = os.dup(fd)
 
-        if sys.platform == "darwin" and not flags & MAP_SHARED:
+        if _DARWIN and not flags & MAP_SHARED:
             flags |= MAP_PRIVATE
 
         # XXX if we use hintp below in alloc, the NonConstant
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to