Skip to content

Commit 19d623b

Browse files
author
Richard Jones
committed
include hack from [SF#1238571]
1 parent 044b20c commit 19d623b

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.188 2005-07-12 01:37:49 richard Exp $
18+
#$Id: back_anydbm.py,v 1.189 2005-07-18 01:35:48 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
@@ -2031,7 +2031,9 @@ def export_journals(self):
20312031
if not isinstance(value, type('')):
20322032
value = value.get_tuple()
20332033
elif isinstance(prop, hyperdb.Interval):
2034-
value = value.get_tuple()
2034+
# hack too - some intervals are stored as strings
2035+
if not isinstance(value, type('')):
2036+
value = value.get_tuple()
20352037
elif isinstance(prop, hyperdb.Password):
20362038
value = str(value)
20372039
export_data[propname] = value

0 commit comments

Comments
 (0)