Author: Armin Rigo <[email protected]>
Branch: py3.6-sandbox-2
Changeset: r97155:7f7d17b89d46
Date: 2019-08-11 23:07 +0200
http://bitbucket.org/pypy/pypy/changeset/7f7d17b89d46/
Log: comment
diff --git a/pypy/module/posix/interp_scandir.py
b/pypy/module/posix/interp_scandir.py
--- a/pypy/module/posix/interp_scandir.py
+++ b/pypy/module/posix/interp_scandir.py
@@ -47,7 +47,7 @@
path_prefix += u'\\'
w_path_prefix = space.newtext(path_prefix)
if rposix.HAVE_FSTATAT:
- dirfd = rposix.c_dirfd(dirp)
+ dirfd = rposix.c_dirfd(dirp) # may return -1; errors are ignored
else:
dirfd = -1
return W_ScandirIterator(space, dirp, dirfd, w_path_prefix,
result_is_bytes)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit