Xavier de Gaye added the comment: This second patch rewrites the conditionals that decide whether to call _iglob() recursively, in a more natural way and without changing the behavior from the first patch. Note that when 'dirname == pathname', then basename is empty and glob2() or glob1() are not called.
The patch also refactors the code with a new _listdir() function. ---------- Added file: http://bugs.python.org/file40999/glob_isdir_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25596> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com