From 1321c444d91a324bfdb7d43b482139c2210df86d Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Wed, 29 Aug 2012 14:33:14 +0100 Subject: Closes #15710: accept long in _checkLevel. --- Lib/logging/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 1ae531f..d279ac7 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: -- cgit v0.12