[pypy-svn] r40094 - pypy/dist/pypy/module/gc

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Mar 8 19:26:39 CET 2007


Author: cfbolz
Date: Thu Mar  8 19:26:39 2007
New Revision: 40094

Modified:
   pypy/dist/pypy/module/gc/interp_gc.py
Log:
be more translatable


Modified: pypy/dist/pypy/module/gc/interp_gc.py
==============================================================================
--- pypy/dist/pypy/module/gc/interp_gc.py	(original)
+++ pypy/dist/pypy/module/gc/interp_gc.py	Thu Mar  8 19:26:39 2007
@@ -9,10 +9,12 @@
     
 collect.unwrap_spec = [ObjSpace]
 
+import sys
+platform = sys.platform
+
 def estimate_heap_size(space):
-    import sys
     # XXX should be done with the help of the GCs
-    if sys.platform == "linux2":
+    if platform == "linux2":
         import os
         pid = os.getpid()
         try:



More information about the Pypy-commit mailing list