[Python-checkins] r63820 - doctools/trunk/sphinx/util/__init__.py

georg.brandl python-checkins at python.org
Fri May 30 21:47:59 CEST 2008


Author: georg.brandl
Date: Fri May 30 21:47:59 2008
New Revision: 63820

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


Modified:
   doctools/trunk/sphinx/util/__init__.py

Modified: doctools/trunk/sphinx/util/__init__.py
==============================================================================
--- doctools/trunk/sphinx/util/__init__.py	(original)
+++ doctools/trunk/sphinx/util/__init__.py	Fri May 30 21:47:59 2008
@@ -256,7 +256,7 @@
     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)


More information about the Python-checkins mailing list