Commit 653e6c89 authored by Jim Fulton's avatar Jim Fulton

Don't need thread-safe re in tagre, since the tag regularexpression gets

recompiled.
parent 0398005a
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file. # attributions are listed in the accompanying credits file.
# #
############################################################################## ##############################################################################
"$Id: DT_String.py,v 1.30 1999/07/12 17:24:53 jim Exp $" "$Id: DT_String.py,v 1.31 1999/08/18 20:50:37 jim Exp $"
from string import split, strip from string import split, strip
import regex, ts_regex import regex, ts_regex
...@@ -145,7 +145,7 @@ class String: ...@@ -145,7 +145,7 @@ class String:
def SubTemplate(self, name): return String('', __name__=name) def SubTemplate(self, name): return String('', __name__=name)
def tagre(self): def tagre(self):
return ts_regex.symcomp( return regex.symcomp(
'%(' # beginning '%(' # beginning
'\(<name>[a-zA-Z0-9_/.-]+\)' # tag name '\(<name>[a-zA-Z0-9_/.-]+\)' # tag name
'\(' '\('
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment