Mercurial > p > roundup > code
view roundup/anypy/my_input.py @ 7024:bac315283a55
flake8: E721 do not compare types, use 'isinstance()'
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 09 Oct 2022 17:44:45 -0400 |
| parents | 4cf48ff01e04 |
| children |
line wrap: on
line source
try: # Python 2. my_input = raw_input except NameError: # Python 3+. my_input = input
