Author: Alex Gaynor <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit