[Zope-Checkins] CVS: Zope3/lib/python/Zope/TAL - DummyEngine.py:1.37
Barry Warsaw
barry@wooz.org
Mon, 1 Jul 2002 14:33:48 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/TAL
In directory cvs.zope.org:/tmp/cvs-serv381
Modified Files:
DummyEngine.py
Log Message:
DummyDomain.translate(): Tim speeds things up by skipping the IGNORECASE.
=== Zope3/lib/python/Zope/TAL/DummyEngine.py 1.36 => 1.37 ===
def repl(m):
return mapping[m.group(m.lastindex).lower()]
- cre = re.compile(r'\$(?:([_a-z]\w*)|\{([_a-z]\w*)\})', re.IGNORECASE)
+ cre = re.compile(r'\$(?:([_A-Z]\w*)|\{([_A-Z]\w*)\})')
return cre.sub(repl, msgid.upper())
class DummyTranslationService: