Skip to content

Commit 3fd2f4d

Browse files
committed
change variable name l -> kept_entries
1 parent 51c4f9e commit 3fd2f4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roundup/backends/back_anydbm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -644,18 +644,18 @@ def pack(self, pack_before):
644644
for key in map(b2s, db.keys()):
645645
# get the journal for this db entry
646646
journal = marshal.loads(db[key])
647-
l = []
647+
kept_entries = []
648648
for entry in journal:
649649
# unpack the entry
650650
(nodeid, date_stamp, self.journaltag, action,
651651
params) = entry
652652
# if the entry is after the pack date, _or_ the initial
653653
# create entry, then it stays
654654
if date_stamp > pack_before or action == 'create':
655-
l.append(entry)
655+
kept_entries.append(entry)
656656
else:
657657
packed += 1
658-
db[key] = marshal.dumps(l)
658+
db[key] = marshal.dumps(kept_entries)
659659

660660
logging.getLogger('roundup.hyperdb.backend').info(
661661
'packed %d %s items' % (packed, classname))

0 commit comments

Comments
 (0)