[pypy-svn] r58263 - pypy/branch/tuple-nonresizable-395/pypy/module/posix

arigo at codespeak.net arigo at codespeak.net
Sat Sep 20 13:32:26 CEST 2008


Author: arigo
Date: Sat Sep 20 13:32:25 2008
New Revision: 58263

Modified:
   pypy/branch/tuple-nonresizable-395/pypy/module/posix/interp_posix.py
Log:
Don't rely on --listcompr here either.


Modified: pypy/branch/tuple-nonresizable-395/pypy/module/posix/interp_posix.py
==============================================================================
--- pypy/branch/tuple-nonresizable-395/pypy/module/posix/interp_posix.py	(original)
+++ pypy/branch/tuple-nonresizable-395/pypy/module/posix/interp_posix.py	Sat Sep 20 13:32:25 2008
@@ -555,7 +555,11 @@
         r = os.uname()
     except OSError, e:
         raise wrap_oserror(space, e)
-    l_w = [space.wrap(i) for i in [r[0], r[1], r[2], r[3], r[4]]]
+    l_w = [space.wrap(r[0]),
+           space.wrap(r[1]),
+           space.wrap(r[2]),
+           space.wrap(r[3]),
+           space.wrap(r[4])]
     return space.newtuple(l_w)
 uname.unwrap_spec = [ObjSpace]
 



More information about the Pypy-commit mailing list