Mercurial > p > roundup > code
view roundup/anypy/my_input.py @ 7552:5775d2c4a846
Fix race condition that results in missing Retry-After header
when rate limit exceeded.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 16 Jul 2023 20:12:45 -0400 |
| parents | 4cf48ff01e04 |
| children |
line wrap: on
line source
try: # Python 2. my_input = raw_input except NameError: # Python 3+. my_input = input
