Author: Ronan Lamy <ronan.l...@gmail.com>
Branch: follow_symlinks
Changeset: r83548:afa5e4d31986
Date: 2016-04-06 19:40 +0100
http://bitbucket.org/pypy/pypy/changeset/afa5e4d31986/

Log:    Allow specifying path as a file descriptor in statvfs()

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
@@ -432,7 +432,9 @@
 On some platforms, path may also be specified as an open file descriptor.
   If this functionality is unavailable, using it raises an exception."""
     try:
-        st = dispatch_filename(rposix_stat.statvfs)(space, w_path)
+        st = dispatch_filename(
+            rposix_stat.statvfs,
+            allow_fd_fn=rposix_stat.fstatvfs)(space, w_path)
     except OSError as e:
         raise wrap_oserror2(space, e, w_path)
     else:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to