Mercurial > p > roundup > code
diff roundup/roundupdb.py @ 5381:0942fe89e82e
Python 3 preparation: change "x.has_key(y)" to "y in x".
(Also likewise "not in" where appropriate.) Tool-generated patch.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 22:08:17 +0000 |
| parents | 35ea9b1efc14 |
| children | 23b8e6067f7c |
line wrap: on
line diff
--- a/roundup/roundupdb.py Tue Jul 24 21:43:32 2018 +0000 +++ b/roundup/roundupdb.py Tue Jul 24 22:08:17 2018 +0000 @@ -313,7 +313,7 @@ 'View', userid, 'msg', prop, msgid) return (userid and (self.db.user.get(userid, 'username') != 'anonymous') and - allowed and not seen_message.has_key(userid)) + allowed and userid not in seen_message) # possibly send the message to the author, as long as they aren't # anonymous
