Larry Hastings <la...@hastings.org> added the comment:

What I did:
* Added dir_fd=None as a keyword only parameter.
* Gave top a default of ".".
* Passed through dir_fd in two spots--that was all it took!
* Made fwalk contingent on os.stat and os.open both being
  in support_dir_fd, and os.listdir being in support_fd.
* Fixed docstring and docs.
* Added unit test for using dir_fd.

----------
Added file: http://bugs.python.org/file26141/larry.fwalk.dir_fd.1.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15177>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to