From: Gregory P. Smith Date: Sat, 17 Dec 2011 20:36:34 +0000 (-0800) Subject: Mention that level can be an int or str in the setLevel docstring. X-Git-Tag: v3.3.0a1~583^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e85488c6f4d01ad53e0836e90fcd6095d0a7a987;p=thirdparty%2FPython%2Fcpython.git Mention that level can be an int or str in the setLevel docstring. --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 25acb3ffbefd..3b2b9bf3b621 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -789,7 +789,7 @@ class Handler(Filterer): def setLevel(self, level): """ - Set the logging level of this handler. + Set the logging level of this handler. level must be an int or a str. """ self.level = _checkLevel(level) @@ -1194,7 +1194,7 @@ class Logger(Filterer): def setLevel(self, level): """ - Set the logging level of this logger. + Set the logging level of this logger. level must be an int or a str. """ self.level = _checkLevel(level)