]> granicus.if.org Git - python/commitdiff
Closes #15710: accept long in _checkLevel.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Wed, 29 Aug 2012 13:33:14 +0000 (14:33 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Wed, 29 Aug 2012 13:33:14 +0000 (14:33 +0100)
Lib/logging/__init__.py

index 1ae531f3384da90b8c8c13b6edffe6458aec0502..d279ac700be98a98ac3ecfed6487661c66a22505 100644 (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: