Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

It is harder to avoid repeating calls in os.walk(), because it is recursive 
itself. But you can introduce a recursive helper _walk() and make os.walk() 
just calling sys.audit() and _walk().

----------

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

Reply via email to