[issue8402] Add a function to escape metacharacters in glob/fnmatch

Dec. 5, 2012
7:31 p.m.
Serhiy Storchaka added the comment: It is good, if stdlib has function for escaping any special characters, even if this function is simple. There are already escape functions for re and sgml/xml/html. Private function glob.glob1 used in Lib/msilib and Tools/msi to prevent unexpected globbing in parent directory name. ``glob.glob1(dirname, pattern)`` should be replaced by ``glob.glob(os.path.join(fnmatch.escape(dirname), pattern)`` in external code. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue8402> _______________________________________
4487
Age (days ago)
4487
Last active (days ago)
0 comments
1 participants
participants (1)
-
Serhiy Storchaka