diff options
| author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-08-29 13:33:14 (GMT) |
|---|---|---|
| committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-08-29 13:33:14 (GMT) |
| commit | 1321c444d91a324bfdb7d43b482139c2210df86d (patch) | |
| tree | e83ea6f8b4cd382702e4508ca7e40f959e0f0a8d | |
| parent | a116df0f39e0bd68b04fc3fd5cd6ebff5371ae88 (diff) | |
| download | cpython-1321c444d91a324bfdb7d43b482139c2210df86d.zip cpython-1321c444d91a324bfdb7d43b482139c2210df86d.tar.gz cpython-1321c444d91a324bfdb7d43b482139c2210df86d.tar.bz2 | |
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 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: |
