From: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Date: Wed, 29 Aug 2012 13:33:14 +0000 (+0100)
Subject: Closes #15710: accept long in _checkLevel.
X-Git-Tag: v2.7.5~109^2~345
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1321c444d91a324bfdb7d43b482139c2210df86d;p=python

Closes #15710: accept long in _checkLevel.
---

diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 1ae531f338..d279ac700b 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: