comparison 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
comparison
equal deleted inserted replaced
5380:64c4e43fbb84 5381:0942fe89e82e
30 stime = os.stat(src)[os.path.stat.ST_MTIME] 30 stime = os.stat(src)[os.path.stat.ST_MTIME]
31 except os.error as error: 31 except os.error as error:
32 if error.errno != errno.ENOENT: 32 if error.errno != errno.ENOENT:
33 raise 33 raise
34 34
35 if self.templates.has_key(src) and \ 35 if src in self.templates and \
36 stime <= self.templates[src].mtime: 36 stime <= self.templates[src].mtime:
37 # compiled template is up to date 37 # compiled template is up to date
38 return self.templates[src] 38 return self.templates[src]
39 39
40 # compile the template 40 # compile the template

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