Mercurial > p > roundup > code
diff roundup/backends/back_anydbm.py @ 7010:1bb7aa8414b8
change variable name l -> kept_entries
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 07 Oct 2022 13:24:26 -0400 |
| parents | 8e19c390e88c |
| children | 4d2625f10314 |
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py Fri Oct 07 13:21:01 2022 -0400 +++ b/roundup/backends/back_anydbm.py Fri Oct 07 13:24:26 2022 -0400 @@ -644,7 +644,7 @@ for key in map(b2s, db.keys()): # get the journal for this db entry journal = marshal.loads(db[key]) - l = [] + kept_entries = [] for entry in journal: # unpack the entry (nodeid, date_stamp, self.journaltag, action, @@ -652,10 +652,10 @@ # if the entry is after the pack date, _or_ the initial # create entry, then it stays if date_stamp > pack_before or action == 'create': - l.append(entry) + kept_entries.append(entry) else: packed += 1 - db[key] = marshal.dumps(l) + db[key] = marshal.dumps(kept_entries) logging.getLogger('roundup.hyperdb.backend').info( 'packed %d %s items' % (packed, classname))
