mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Actually make the regex a re object. Thanks to Kent Tenney.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user