Mercurial > p > roundup > code
annotate roundup/anypy/my_input.py @ 5555:7b663b588292 REST-rebased
Don't pass huge itemids into the backend.
[[Ralf Schlatterbeck: Note that the original patch wasn't python3
compatible and used long instead of int. Verified that python2.7 can
deal with long numeric strings, e.g. 2**64 * 10:
int("184467440737095516160")]]
committer: Ralf Schlatterbeck <rsc@runtux.com>
| author | martin.v.loewis <martin.v.loewis> |
|---|---|
| date | Tue, 29 Jan 2019 15:13:44 +0100 |
| 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 |
