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

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