Mercurial > p > roundup > code
diff roundup/cgi/engine_zopetal.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 | 55f09ca366c4 |
line wrap: on
line diff
--- a/roundup/cgi/engine_zopetal.py Tue Jul 24 21:43:32 2018 +0000 +++ b/roundup/cgi/engine_zopetal.py Tue Jul 24 22:08:17 2018 +0000 @@ -32,7 +32,7 @@ if error.errno != errno.ENOENT: raise - if self.templates.has_key(src) and \ + if src in self.templates and \ stime <= self.templates[src].mtime: # compiled template is up to date return self.templates[src]
