mirror of https://github.com/python/cpython
Closes #15710: accept long in _checkLevel.
This commit is contained in:
parent
a116df0f39
commit
1321c444d9
|
@ -180,7 +180,7 @@ def addLevelName(level, levelName):
|
|||
_releaseLock()
|
||||
|
||||
def _checkLevel(level):
|
||||
if isinstance(level, int):
|
||||
if isinstance(level, (int, long)):
|
||||
rv = level
|
||||
elif str(level) == level:
|
||||
if level not in _levelNames:
|
||||
|
|
Loading…
Reference in New Issue