Syntax cleanup.

This commit is contained in:
Florent Xicluna 2010-07-28 16:39:41 +00:00
parent 3f8ab965f7
commit 02ea12b291
7 changed files with 9 additions and 11 deletions

View file

@ -16,7 +16,7 @@ def isint(x):
def isnum(x):
"""Test whether an object is an instance of a built-in numeric type."""
for T in int, int, float, complex:
for T in int, float, complex:
if isinstance(x, T):
return 1
return 0