Mercurial > p > roundup > code
annotate roundup/anypy/my_input.py @ 8184:53dba022d4cd
chore: update to python 3.13. Also use index file shasum.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 08 Dec 2024 21:36:29 -0500 |
| parents | 4cf48ff01e04 |
| children |
| rev | line source |
|---|---|
|
5401
4cf48ff01e04
Python 3 preparation: replace raw_input uses.
Joseph Myers <jsm@polyomino.org.uk>
parents:
diff
changeset
|
1 try: |
|
4cf48ff01e04
Python 3 preparation: replace raw_input uses.
Joseph Myers <jsm@polyomino.org.uk>
parents:
diff
changeset
|
2 # Python 2. |
|
4cf48ff01e04
Python 3 preparation: replace raw_input uses.
Joseph Myers <jsm@polyomino.org.uk>
parents:
diff
changeset
|
3 my_input = raw_input |
|
4cf48ff01e04
Python 3 preparation: replace raw_input uses.
Joseph Myers <jsm@polyomino.org.uk>
parents:
diff
changeset
|
4 except NameError: |
|
4cf48ff01e04
Python 3 preparation: replace raw_input uses.
Joseph Myers <jsm@polyomino.org.uk>
parents:
diff
changeset
|
5 # Python 3+. |
|
4cf48ff01e04
Python 3 preparation: replace raw_input uses.
Joseph Myers <jsm@polyomino.org.uk>
parents:
diff
changeset
|
6 my_input = input |
