mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +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
|
@ -417,11 +417,8 @@ def _parse_num(val, type):
|
|||
def _parse_int(val):
|
||||
return _parse_num(val, int)
|
||||
|
||||
def _parse_long(val):
|
||||
return _parse_num(val, int)
|
||||
|
||||
_builtin_cvt = { "int" : (_parse_int, _("integer")),
|
||||
"long" : (_parse_long, _("long integer")),
|
||||
"long" : (_parse_int, _("integer")),
|
||||
"float" : (float, _("floating-point")),
|
||||
"complex" : (complex, _("complex")) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue