summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/logging/__init__.py2
1 files changed, 1 insertions, 1 deletions
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: