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