diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-08-29 14:33:14 +0100 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-08-29 14:33:14 +0100 |
commit | 1321c444d91a324bfdb7d43b482139c2210df86d (patch) | |
tree | e83ea6f8b4cd382702e4508ca7e40f959e0f0a8d | |
parent | a116df0f39e0bd68b04fc3fd5cd6ebff5371ae88 (diff) | |
download | cpython-git-1321c444d91a324bfdb7d43b482139c2210df86d.tar.gz |
Closes #15710: accept long in _checkLevel.
-rw-r--r-- | Lib/logging/__init__.py | 2 |
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: |