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

View file

@ -789,7 +789,7 @@ def release(self):
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 @@ def __init__(self, name, level=NOTSET):
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)