changeset 1266:b3279ec4837a

be able to parse b0rken Interval serialisation
author Richard Jones <richard@users.sourceforge.net>
date Thu, 10 Oct 2002 08:24:37 +0000
parents 6763080a959e
children a28dfdb6c9a5
files roundup/date.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/date.py	Thu Oct 10 08:09:49 2002 +0000
+++ b/roundup/date.py	Thu Oct 10 08:24:37 2002 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: date.py,v 1.33 2002-10-10 07:18:02 richard Exp $
+# $Id: date.py,v 1.34 2002-10-10 08:24:37 richard Exp $
 
 __doc__ = """
 Date, time and time interval handling.
@@ -362,7 +362,7 @@
             \s*((?P<d>\d+\s*)d)?    # day
             \s*(((?P<H>\d+):(?P<M>\d+))?(:(?P<S>\d+))?)?   # time
             \s*''', re.VERBOSE), serialised_re=re.compile('''
-            (?P<s>[+-])(?P<y>\d{4})(?P<m>\d{2})(?P<d>\d{2})
+            (?P<s>[+-])?1?(?P<y>([ ]{3}\d|\d{4}))(?P<m>\d{2})(?P<d>\d{2})
             (?P<H>\d{2})(?P<M>\d{2})(?P<S>\d{2})''', re.VERBOSE)):
         ''' set the date to the value in spec
         '''

Roundup Issue Tracker: http://roundup-tracker.org/