diff options
| author | Gregory P. Smith <greg@krypto.org> | 2011-12-17 20:36:34 (GMT) |
|---|---|---|
| committer | Gregory P. Smith <greg@krypto.org> | 2011-12-17 20:36:34 (GMT) |
| commit | e85488c6f4d01ad53e0836e90fcd6095d0a7a987 (patch) | |
| tree | 3c2b541b1d30ba4fcad5fbd8103e007a5583ef74 /Lib/logging/__init__.py | |
| parent | 564a42c8decbfe5a18a5ff0b6c496a41740c5a0f (diff) | |
| download | cpython-e85488c6f4d01ad53e0836e90fcd6095d0a7a987.zip cpython-e85488c6f4d01ad53e0836e90fcd6095d0a7a987.tar.gz cpython-e85488c6f4d01ad53e0836e90fcd6095d0a7a987.tar.bz2 | |
Mention that level can be an int or str in the setLevel docstring.
Diffstat (limited to 'Lib/logging/__init__.py')
| -rw-r--r-- | Lib/logging/__init__.py | 4 |
1 files 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) |
