Mercurial > p > roundup > code
view roundup/anypy/my_input.py @ 5464:22eecc8a8bd4
fixed backend detection for Python 3
| author | Christof Meerwald <cmeerw@cmeerw.org> |
|---|---|
| date | Sat, 28 Jul 2018 14:12:06 +0100 |
| parents | 4cf48ff01e04 |
| children |
line wrap: on
line source
try: # Python 2. my_input = raw_input except NameError: # Python 3+. my_input = input
