File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 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
2020database chosen by anydbm. It is guaranteed to always be available in python
2121versions >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
You can’t perform that action at this time.
0 commit comments