Actually make the regex a re object. Thanks to Kent Tenney.

This commit is contained in:
Georg Brandl
2008-05-30 19:47:59 +00:00
parent c784212031
commit e7551c7507

View File

@@ -256,7 +256,7 @@ def patfilter(names, pat):
return filter(match, names)
no_fn_re = r'[:/\\?*%|"\'<>. \t]'
no_fn_re = re.compile(r'[:/\\?*%|"\'<>. \t]')
def make_filename(string):
return no_fn_re.sub('', string)