Mercurial > p > roundup > code
view roundup/anypy/my_input.py @ 5687:83037aaf3b9d
Move definition/initialization of api_version into the class and out
of dispatch. Tests were failing because of this since the tests don't
all run through dispatch.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 31 Mar 2019 22:36:41 -0400 |
| parents | 4cf48ff01e04 |
| children |
line wrap: on
line source
try: # Python 2. my_input = raw_input except NameError: # Python 3+. my_input = input
