diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2011-10-23 20:11:00 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2011-10-23 20:11:00 (GMT) |
commit | 2bb96f593a067dafc7f02fef659ff22994b83399 (patch) | |
tree | b2b2acc64f5e4e6da3d98541544c72b2a439e98a /Lib/pickletools.py | |
parent | 8d48b43ea9abe494527acea05dcd6b8d067278ea (diff) | |
download | cpython-2bb96f593a067dafc7f02fef659ff22994b83399.zip cpython-2bb96f593a067dafc7f02fef659ff22994b83399.tar.gz cpython-2bb96f593a067dafc7f02fef659ff22994b83399.tar.bz2 |
Cleanup code: remove int/long idioms and simplify a while statement.
Diffstat (limited to 'Lib/pickletools.py')
-rw-r--r-- | Lib/pickletools.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/pickletools.py b/Lib/pickletools.py index 3061675..515d375 100644 --- a/Lib/pickletools.py +++ b/Lib/pickletools.py @@ -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""" |