diff website/issues/detectors/statusauditor.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 c2d0d3e9099d
children 13e8f188f8dd
line wrap: on
line diff
--- a/website/issues/detectors/statusauditor.py	Tue Jul 24 21:43:32 2018 +0000
+++ b/website/issues/detectors/statusauditor.py	Tue Jul 24 22:08:17 2018 +0000
@@ -1,7 +1,7 @@
 def preset_new(db, cl, nodeid, newvalues):
     """ Make sure the status is set on new issues"""
 
-    if newvalues.has_key('status') and newvalues['status']:
+    if 'status' in newvalues and newvalues['status']:
         return
 
     new = db.status.lookup('new')

Roundup Issue Tracker: http://roundup-tracker.org/