Code

must be backward-compatible to py2.1
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 5 Dec 2003 04:43:30 +0000 (04:43 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 5 Dec 2003 04:43:30 +0000 (04:43 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2016 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/roundupdb.py

index 4bd6f8542902d200e6e7230e74f4a9ff2c933f09..178552f5a83707b99e190f2014b0024ba23f0567 100644 (file)
@@ -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')