Mercurial > p > roundup > code
view roundup/anypy/my_input.py @ 5764:611737bc7261 issue2551008
Handle the issue in _decode_header by decoding only when decode_header returns bytes.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Wed, 05 Jun 2019 00:13:45 +0200 |
| parents | 4cf48ff01e04 |
| children |
line wrap: on
line source
try: # Python 2. my_input = raw_input except NameError: # Python 3+. my_input = input
