From: Vinay Sajip Date: Wed, 29 Aug 2012 13:33:14 +0000 (+0100) Subject: Closes #15710: accept long in _checkLevel. X-Git-Tag: v2.7.4rc1~602 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1321c444d91a324bfdb7d43b482139c2210df86d;p=thirdparty%2FPython%2Fcpython.git Closes #15710: accept long in _checkLevel. --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 1ae531f3384d..d279ac700be9 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -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: