Closes #15710: accept long in _checkLevel.

This commit is contained in:
Vinay Sajip 2012-08-29 14:33:14 +01:00
parent a116df0f39
commit 1321c444d9
1 changed files with 1 additions and 1 deletions

View File

@ -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: