cpython (2.7): Closes #15710: accept long in _checkLevel.

Aug. 29, 2012
1:34 p.m.
http://hg.python.org/cpython/rev/8ba6d8fc9740 changeset: 78801:8ba6d8fc9740 branch: 2.7 user: Vinay Sajip <vinay_sajip@yahoo.co.uk> date: Wed Aug 29 14:33:14 2012 +0100 summary: Closes #15710: accept long in _checkLevel. files: Lib/logging/__init__.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -180,7 +180,7 @@ _releaseLock() def _checkLevel(level): - if isinstance(level, int): + if isinstance(level, (int, long)): rv = level elif str(level) == level: if level not in _levelNames: -- Repository URL: http://hg.python.org/cpython
4594
Age (days ago)
4594
Last active (days ago)
0 comments
1 participants
participants (1)
-
vinay.sajip