[Zope-Checkins] CVS: Zope2 - DateTime.py:1.64.4.2
Andreas Jung
andreas@dhcp165.digicool.com
Mon, 23 Apr 2001 12:19:13 -0400
Update of /cvs-repository/Zope2/lib/python/DateTime
In directory yetix:/work/sandboxes/ajung-2_4-ts_regex-exterminiation-branch/lib/python/DateTime
Modified Files:
Tag: ajung-2_4-ts_regex-exterminiation-branch
DateTime.py
Log Message:
added r" " to regexes
--- Updated File DateTime.py in package Zope2 --
--- DateTime.py 2001/04/17 20:43:46 1.64.4.1
+++ DateTime.py 2001/04/23 16:19:12 1.64.4.2
@@ -108,7 +108,7 @@
jd1901 =2415385L
-numericTimeZoneMatch=re.compile('[+-][0-9][0-9][0-9][0-9]').match #TS
+numericTimeZoneMatch=re.compile(r'[+-][0-9][0-9][0-9][0-9]').match #TS
@@ -817,9 +817,9 @@
DateTimeError='DateTimeError'
SyntaxError ='Invalid Date-Time String'
DateError ='Invalid Date Components'
- int_pattern =re.compile('([0-9]+)') #AJ
- flt_pattern =re.compile(':([0-9]+\.[0-9]+)') #AJ
- name_pattern =re.compile('([a-zA-Z]+)', re.I) #AJ
+ int_pattern =re.compile(r'([0-9]+)') #AJ
+ flt_pattern =re.compile(r':([0-9]+\.[0-9]+)') #AJ
+ name_pattern =re.compile(r'([a-zA-Z]+)', re.I) #AJ
space_chars =' \t\n'
delimiters ='-/.:,+'
_month_len =((0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31),