Commits

Alex Gaynor committed 46b9ff6

Fix translation.

  • Participants
  • Parent commits c1212ae

Comments (0)

Files changed (1)

File rpython/rlib/rmmap.py

 _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')
         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