Fix fnmatch
fnmatch does not accept regular expressions as presumed in
0c4851e436 See
http://docs.python.org/2/library/fnmatch.html
This patch actually completely broke tagging. All we need to do is make
sure any [ or ] used is conbverted into [[] or []].
Fixes #2557 and #2362
This commit is contained in:
@@ -11,6 +11,9 @@ import sys
|
||||
|
||||
log = CPLog(__name__)
|
||||
|
||||
def fnEscape(pattern):
|
||||
return pattern.replace('[','[[').replace(']','[]]').replace('[[','[[]')
|
||||
|
||||
def link(src, dst):
|
||||
if os.name == 'nt':
|
||||
import ctypes
|
||||
|
||||
Reference in New Issue
Block a user