From 6be883fbdb1985520c91c0a5d37f87b5b895c603 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 5 Dec 2003 04:43:30 +0000 Subject: [PATCH] must be backward-compatible to py2.1 git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2016 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/roundupdb.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py index 4bd6f85..178552f 100644 --- a/roundup/roundupdb.py +++ b/roundup/roundupdb.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundupdb.py,v 1.95 2003-11-16 20:01:16 jlgijsbers Exp $ +# $Id: roundupdb.py,v 1.96 2003-12-05 04:43:30 richard Exp $ __doc__ = """ Extending hyperdb with types specific to issue-tracking. @@ -137,8 +137,10 @@ class IssueClass: recipients = self.db.msg.safeget(msgid, 'recipients', []) sendto = [] - seen_message = dict([(recipient, 1) for recipient in recipients]) - + seen_message = {} + for recipient in recipients: + seen_message[recipient] = 1 + def add_recipient(userid): # make sure they have an address address = self.db.user.get(userid, 'address') -- 2.30.2