mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Cleanup code: remove int/long idioms and simplify a while statement.
This commit is contained in:
parent
8d48b43ea9
commit
2bb96f593a
5 changed files with 10 additions and 35 deletions
|
@ -510,10 +510,7 @@ def read_decimalnl_short(f):
|
|||
elif s == b"01":
|
||||
return True
|
||||
|
||||
try:
|
||||
return int(s)
|
||||
except OverflowError:
|
||||
return int(s)
|
||||
return int(s)
|
||||
|
||||
def read_decimalnl_long(f):
|
||||
r"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue