Mercurial > p > roundup > code
view roundup/anypy/my_input.py @ 7815:f11c982f01c8
chore(refactor): extract setting of db.tx_source out of if tree
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 17 Mar 2024 00:51:12 -0400 |
| parents | 4cf48ff01e04 |
| children |
line wrap: on
line source
try: # Python 2. my_input = raw_input except NameError: # Python 3+. my_input = input
