Author: Alex Gaynor <alex.gay...@gmail.com> Branch: Changeset: r66305:1043bb8b12f8 Date: 2013-08-23 09:24 -0700 http://bitbucket.org/pypy/pypy/changeset/1043bb8b12f8/
Log: Use a strlist for posix.listdir() 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 @@ -577,13 +577,12 @@ except OperationError, e: # fall back to the original byte string result_w[i] = w_bytes + return space.newlist(result_w) else: dirname = space.str0_w(w_dirname) - result = rposix.listdir(dirname) - result_w = [space.wrap(s) for s in result] + return space.newlist_str(rposix.listdir(dirname)) except OSError, e: raise wrap_oserror2(space, e, w_dirname) - return space.newlist(result_w) def pipe(space): "Create a pipe. Returns (read_end, write_end)." _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit