Mercurial > p > roundup > code
diff frontends/ZRoundup/__init__.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 | d26921b851c3 |
line wrap: on
line diff
--- a/frontends/ZRoundup/__init__.py Tue Jul 24 21:43:32 2018 +0000 +++ b/frontends/ZRoundup/__init__.py Tue Jul 24 22:08:17 2018 +0000 @@ -19,7 +19,7 @@ import os # figure where ZRoundup is installed here = None -if os.environ.has_key('INSTANCE_HOME'): +if 'INSTANCE_HOME' in os.environ: here = os.environ['INSTANCE_HOME'] path = os.path.join(here, 'Products', 'ZRoundup') if not os.path.exists(path):
