New submission from Xavier de Gaye: The glob module happily joins names of regular files together with os.path.join() or attempts to list the files contained into a regular file (sic). The same 'except os.error' statement is used to handle both these cases and the case of a non readable directory.
The attached patch makes the code more correct and easier to understand. ---------- components: Library (Lib) files: glob_isdir.patch keywords: patch messages: 254440 nosy: xdegaye priority: normal severity: normal status: open title: regular files handled as directories in the glob module type: enhancement versions: Python 3.6 Added file: http://bugs.python.org/file40996/glob_isdir.patch _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue25596> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
