Skip to content

Commit b654939

Browse files
author
Richard Jones
committed
fixed date unserialisation for *dbm backends
1 parent eb721b6 commit b654939

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

roundup/date.py

Lines changed: 3 additions & 1 deletion
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.50 2003-03-19 05:18:10 richard Exp $
18+
# $Id: date.py,v 1.51 2003-03-22 22:43:21 richard Exp $
1919

2020
__doc__ = """
2121
Date, time and time interval handling.
@@ -384,6 +384,8 @@ def set(self, spec, allowdate=1, interval_re=re.compile('''
384384
if not m:
385385
raise ValueError, _('Not an interval spec: [+-] [#y] [#m] [#w] '
386386
'[#d] [[[H]H:MM]:SS] [date spec]')
387+
else:
388+
allowdate = 0
387389

388390
# pull out all the info specified
389391
info = m.groupdict()

test/test_db.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: test_db.py,v 1.80 2003-03-18 23:28:16 richard Exp $
18+
# $Id: test_db.py,v 1.81 2003-03-22 22:43:21 richard Exp $
1919

2020
import unittest, os, shutil, time
2121

@@ -902,7 +902,7 @@ def suite():
902902
unittest.makeSuite(anydbmReadOnlyDBTestCase, 'test')
903903
]
904904
p.append('anydbm')
905-
#return unittest.TestSuite(l)
905+
# return unittest.TestSuite(l)
906906

907907
from roundup import backends
908908
if hasattr(backends, 'mysql'):

0 commit comments

Comments
 (0)