Cleanup code: remove int/long idioms and simplify a while statement.

This commit is contained in:
Florent Xicluna 2011-10-23 22:11:00 +02:00
parent 8d48b43ea9
commit 2bb96f593a
5 changed files with 10 additions and 35 deletions

View file

@ -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"""