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

Reply via email to