Mercurial > p > roundup > code
diff roundup/support.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 | 64b05e24dbd8 |
| children | 831787cf6694 |
line wrap: on
line diff
--- a/roundup/support.py Tue Jul 24 21:43:32 2018 +0000 +++ b/roundup/support.py Tue Jul 24 22:08:17 2018 +0000 @@ -19,7 +19,7 @@ self.__getitem__ = lambda name: 1 def __getitem__(self, name): - return self.keys.has_key(name) + return name in self.keys def ensureParentsExist(dest): if not os.path.exists(os.path.dirname(dest)):
