Skip to content

Commit c27c3b7

Browse files
author
Richard Jones
committed
be able to parse b0rken Interval serialisation
1 parent eb65c84 commit c27c3b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/date.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: date.py,v 1.33 2002-10-10 07:18:02 richard Exp $
18+
# $Id: date.py,v 1.34 2002-10-10 08:24:37 richard Exp $
1919

2020
__doc__ = """
2121
Date, time and time interval handling.
@@ -362,7 +362,7 @@ def set(self, spec, interval_re=re.compile('''
362362
\s*((?P<d>\d+\s*)d)? # day
363363
\s*(((?P<H>\d+):(?P<M>\d+))?(:(?P<S>\d+))?)? # time
364364
\s*''', re.VERBOSE), serialised_re=re.compile('''
365-
(?P<s>[+-])(?P<y>\d{4})(?P<m>\d{2})(?P<d>\d{2})
365+
(?P<s>[+-])?1?(?P<y>([ ]{3}\d|\d{4}))(?P<m>\d{2})(?P<d>\d{2})
366366
(?P<H>\d{2})(?P<M>\d{2})(?P<S>\d{2})''', re.VERBOSE)):
367367
''' set the date to the value in spec
368368
'''

0 commit comments

Comments
 (0)