Skip to content

Commit 5ac4542

Browse files
author
Richard Jones
committed
must be backward-compatible to py2.1
1 parent f3cf662 commit 5ac4542

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

roundup/roundupdb.py

Lines changed: 5 additions & 3 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.95 2003-11-16 20:01:16 jlgijsbers Exp $
18+
# $Id: roundupdb.py,v 1.96 2003-12-05 04:43:30 richard Exp $
1919

2020
__doc__ = """
2121
Extending hyperdb with types specific to issue-tracking.
@@ -137,8 +137,10 @@ def nosymessage(self, nodeid, msgid, oldvalues, whichnosy='nosy',
137137
recipients = self.db.msg.safeget(msgid, 'recipients', [])
138138

139139
sendto = []
140-
seen_message = dict([(recipient, 1) for recipient in recipients])
141-
140+
seen_message = {}
141+
for recipient in recipients:
142+
seen_message[recipient] = 1
143+
142144
def add_recipient(userid):
143145
# make sure they have an address
144146
address = self.db.user.get(userid, 'address')

0 commit comments

Comments
 (0)