Skip to content

Commit 67cabb8

Browse files
author
Richard Jones
committed
merge from maint-0-7
1 parent b6297be commit 67cabb8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

roundup/backends/back_anydbm.py

Lines changed: 6 additions & 4 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.177 2004-11-12 10:43:31 a1s Exp $
18+
#$Id: back_anydbm.py,v 1.178 2004-11-25 22:59:17 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
@@ -381,12 +381,14 @@ def serialise(self, classname, node):
381381
properties = self.getclass(classname).getprops()
382382
d = {}
383383
for k, v in node.items():
384-
# if the property doesn't exist, or is the "retired" flag then
385-
# it won't be in the properties dict
386-
if not properties.has_key(k):
384+
if k == self.RETIRED_FLAG:
387385
d[k] = v
388386
continue
389387

388+
# if the property doesn't exist then we really don't care
389+
if not properties.has_key(k):
390+
continue
391+
390392
# get the property spec
391393
prop = properties[k]
392394

0 commit comments

Comments
 (0)