diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-27 13:09:36 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-27 13:09:36 (GMT) |
commit | 994f04dbf576f4ebafb9de2bc6821e15cb0de0ea (patch) | |
tree | 4967ed9c9688f7fe035c646de993c337141051b0 /Lib/logging/__init__.py | |
parent | 58c2c6ebb893917e759cc1401b0d862b3f7c1a94 (diff) | |
download | cpython-994f04dbf576f4ebafb9de2bc6821e15cb0de0ea.zip cpython-994f04dbf576f4ebafb9de2bc6821e15cb0de0ea.tar.gz cpython-994f04dbf576f4ebafb9de2bc6821e15cb0de0ea.tar.bz2 |
Issue #28998: More APIs now support longs as well as ints.
Diffstat (limited to 'Lib/logging/__init__.py')
-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 caf151d..2220582 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -1222,7 +1222,7 @@ class Logger(Filterer): logger.log(level, "We have a %s", "mysterious problem", exc_info=1) """ - if not isinstance(level, int): + if not isinstance(level, (int, long)): if raiseExceptions: raise TypeError("level must be an integer") else: |