[pypy-commit] pypy py3.6: save one call to fsencode, fix win32 memoryview fail

mattip pypy.commits at gmail.com
Mon Feb 3 15:11:28 EST 2020


Author: Matti Picus <matti.picus at gmail.com>
Branch: py3.6
Changeset: r98650:ed2655152694
Date: 2020-02-03 21:24 +0200
http://bitbucket.org/pypy/pypy/changeset/ed2655152694/

Log:	save one call to fsencode, fix win32 memoryview fail

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
@@ -1005,9 +1005,8 @@
         except OSError as e:
             raise wrap_oserror(space, e, eintr_retry=False)
     else:
-        dirname = FileEncoder(space, w_path)
         try:
-            result = rposix.listdir(dirname)
+            result = rposix.listdir(path)
         except OSError as e:
             raise wrap_oserror2(space, e, w_path, eintr_retry=False)
     len_result = len(result)


More information about the pypy-commit mailing list