mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Syntax cleanup.
This commit is contained in:
parent
3f8ab965f7
commit
02ea12b291
7 changed files with 9 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue