Commit 1321c444 authored by Vinay Sajip's avatar Vinay Sajip

Closes #15710: accept long in _checkLevel.

parent a116df0f
...@@ -180,7 +180,7 @@ def addLevelName(level, levelName): ...@@ -180,7 +180,7 @@ def addLevelName(level, levelName):
_releaseLock() _releaseLock()
def _checkLevel(level): def _checkLevel(level):
if isinstance(level, int): if isinstance(level, (int, long)):
rv = level rv = level
elif str(level) == level: elif str(level) == level:
if level not in _levelNames: if level not in _levelNames:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment