Mercurial > p > roundup > code
annotate roundup/anypy/my_input.py @ 7443:51fc06fabcee 2.3.0b2
Changes for roundup release 2.3.0b2
I missed changing announcements.txt so the b1 release has the 2.2.0
release announcment when I uploaded to test.pipi.org.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 31 May 2023 19:44:02 -0400 |
| 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 |
