Mercurial > p > roundup > code
diff roundup/token.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 | bc16d91b7a50 |
| children | 7d276bb8b46d |
line wrap: on
line diff
--- a/roundup/token.py Tue Jul 24 21:43:32 2018 +0000 +++ b/roundup/token.py Tue Jul 24 22:08:17 2018 +0000 @@ -106,7 +106,7 @@ # escaped-char conversions (t, r, n) # TODO: octal, hexdigit state = oldstate - if escaped.has_key(c): + if c in escaped: c = escaped[c] # just add this char to the token and move along token = token + c
