[Patches] [ python-Patches-738389 ] fix for glob with directories which contain brackets
SourceForge.net
noreply@sourceforge.net
Thu, 15 May 2003 10:11:32 -0700
Patches item #738389, was opened at 2003-05-15 13:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=738389&group_id=5470
Category: Modules
Group: Python 2.2.x
Status: Open
Resolution: None
Priority: 5
Submitted By: Steven Scott (progoth)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix for glob with directories which contain brackets
Initial Comment:
see bug #738631,
http://sourceforge.net/tracker/index.php?func=detail&aid=738361&group_id=5470&atid=105470
if you give glob a pattern with [...], it assumes it's
a file pattern. this changes glob.py to add a \ in
front of the [ if a directory actually exists with the
bracket in it.
it also changes translate in fnmatch.py to take the
special case of \[ and add that straight to the regex
instead of trying to handle the shell pattern.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=738389&group_id=5470