mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Closes #15710: accept long in _checkLevel.
This commit is contained in:
parent
a116df0f39
commit
1321c444d9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue