Skip to content

Commit d8fc97f

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 5ddfcfa commit d8fc97f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

roundup/backends/back_anydbm.py

Lines changed: 4 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: back_anydbm.py,v 1.179.2.8 2005-07-12 01:43:17 richard Exp $
18+
#$Id: back_anydbm.py,v 1.179.2.9 2005-07-18 01:42:26 richard Exp $
1919
'''This module defines a backend that saves the hyperdatabase in a
2020
database chosen by anydbm. It is guaranteed to always be available in python
2121
versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several
@@ -2027,7 +2027,9 @@ def export_journals(self):
20272027
if not isinstance(value, type('')):
20282028
value = value.get_tuple()
20292029
elif isinstance(prop, hyperdb.Interval):
2030-
value = value.get_tuple()
2030+
# hack too - some intervals are stored as strings
2031+
if not isinstance(value, type('')):
2032+
value = value.get_tuple()
20312033
elif isinstance(prop, hyperdb.Password):
20322034
value = str(value)
20332035
export_data[propname] = value

0 commit comments

Comments
 (0)