Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e85488c

Browse files
committed
Mention that level can be an int or str in the setLevel docstring.
1 parent 564a42c commit e85488c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/logging/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def release(self):
789789

790790
def setLevel(self, level):
791791
"""
792-
Set the logging level of this handler.
792+
Set the logging level of this handler. level must be an int or a str.
793793
"""
794794
self.level = _checkLevel(level)
795795

@@ -1194,7 +1194,7 @@ def __init__(self, name, level=NOTSET):
11941194

11951195
def setLevel(self, level):
11961196
"""
1197-
Set the logging level of this logger.
1197+
Set the logging level of this logger. level must be an int or a str.
11981198
"""
11991199
self.level = _checkLevel(level)
12001200

0 commit comments

Comments
 (0)