[pypy-commit] pypy default: Yet Another Temporary Translation Fix

alex_gaynor noreply at buildbot.pypy.org
Mon Jun 30 21:43:45 CEST 2014


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r72300:8079e9df3d8c
Date: 2014-06-30 12:43 -0700
http://bitbucket.org/pypy/pypy/changeset/8079e9df3d8c/

Log:	Yet Another Temporary Translation Fix

diff --git a/pypy/module/posix/interp_posix.py b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -582,7 +582,9 @@
         else:
             dirname = space.str0_w(w_dirname)
             result = rposix.listdir(dirname)
-            return space.newlist_bytes(result[:])
+            # The list comprehension is a workaround for an obscure translation
+            # bug.
+            return space.newlist_bytes([x for x in result])
     except OSError, e:
         raise wrap_oserror2(space, e, w_dirname)
 


More information about the pypy-commit mailing list