From e85488c6f4d01ad53e0836e90fcd6095d0a7a987 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sat, 17 Dec 2011 12:36:34 -0800 Subject: Mention that level can be an int or str in the setLevel docstring. --- Lib/logging/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 25acb3f..3b2b9bf 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) -- cgit v0.12