Skip to content

Commit 4fb45a0

Browse files
author
Richard Jones
committed
code cleanup (patch [SF#115329] and additional)
1 parent 35220a9 commit 4fb45a0

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Fixed:
1212
- more documentation of security mechanisms (incl. sf patches 1117932,
1313
1117860)
1414
- better unit tests for security mechanisms
15+
- code cleanup (sf patch 1115329 and additional)
1516

1617

1718
2005-01-13 0.8.0b2

roundup/roundupdb.py

Lines changed: 7 additions & 7 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: roundupdb.py,v 1.117 2004-11-12 04:07:03 richard Exp $
18+
# $Id: roundupdb.py,v 1.118 2005-02-12 00:57:08 richard Exp $
1919

2020
"""Extending hyperdb with types specific to issue-tracking.
2121
"""
@@ -433,9 +433,9 @@ def generateCreateNote(self, nodeid):
433433

434434
# list the values
435435
m = []
436-
l = props.items()
437-
l.sort()
438-
for propname, prop in l:
436+
prop_items = props.items()
437+
prop_items.sort()
438+
for propname, prop in prop_items:
439439
value = cl.get(nodeid, propname, None)
440440
# skip boring entries
441441
if not value:
@@ -500,9 +500,9 @@ def generateChangeNote(self, nodeid, oldvalues):
500500

501501
# list the changes
502502
m = []
503-
l = changed.items()
504-
l.sort()
505-
for propname, oldvalue in l:
503+
changed_items = changed.items()
504+
changed_items.sort()
505+
for propname, oldvalue in changed_items:
506506
prop = props[propname]
507507
value = cl.get(nodeid, propname, None)
508508
if isinstance(prop, hyperdb.Link):

0 commit comments

Comments
 (0)