Mention that level can be an int or str in the setLevel docstring.

This commit is contained in:
Gregory P. Smith 2011-12-17 12:36:34 -08:00
parent 564a42c8de
commit e85488c6f4
1 changed files with 2 additions and 2 deletions

View File

@ -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)