Xavier de Gaye
2015-11-10 11:18:07 UTC
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 <***@bugs.python.org>
<http://bugs.python.org/issue25596>
_______________________________________
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 <***@bugs.python.org>
<http://bugs.python.org/issue25596>
_______________________________________