[Zope3-checkins] SVN: Zope3/trunk/src/zope/configuration/fields.py
escape backslashes for otherwise "unknown" escape sequences
Benji York
benji at zope.com
Wed Aug 10 12:15:26 EDT 2005
Log message for revision 37840:
escape backslashes for otherwise "unknown" escape sequences
Changed:
U Zope3/trunk/src/zope/configuration/fields.py
-=-
Modified: Zope3/trunk/src/zope/configuration/fields.py
===================================================================
--- Zope3/trunk/src/zope/configuration/fields.py 2005-08-10 16:14:44 UTC (rev 37839)
+++ Zope3/trunk/src/zope/configuration/fields.py 2005-08-10 16:15:26 UTC (rev 37840)
@@ -24,7 +24,7 @@
from zope.interface import implements
from zope.configuration.interfaces import InvalidToken
-PYIDENTIFIER_REGEX = u'\A[a-zA-Z_]+[a-zA-Z0-9_]*\Z'
+PYIDENTIFIER_REGEX = u'\\A[a-zA-Z_]+[a-zA-Z0-9_]*\\Z'
pyidentifierPattern = re.compile(PYIDENTIFIER_REGEX)
class PythonIdentifier(schema.TextLine):
More information about the Zope3-Checkins
mailing list