[Patches] [ python-Patches-738389 ] fix for glob with directories
which contain brackets
SourceForge.net
noreply at sourceforge.net
Mon Sep 13 04:56:20 CEST 2004
Patches item #738389, was opened at 2003-05-15 13:11
Message generated for change (Settings changed) made by progoth
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: Deleted
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
More information about the Patches
mailing list