Mercurial > p > roundup > code
view roundup/anypy/my_input.py @ 7550:706f3be6ffbb
Add tests for <= >= and check exception is raised for python3.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 16 Jul 2023 17:59:42 -0400 |
| parents | 4cf48ff01e04 |
| children |
line wrap: on
line source
try: # Python 2. my_input = raw_input except NameError: # Python 3+. my_input = input
