mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Fix logging error message (GH-22410)
Same changes as #22276 squashed to a single commit. Just hoping to get Travis to cooperate by opening a new PR... Automerge-Triggered-By: @vsajip
This commit is contained in:
parent
02d126aa09
commit
9fdb76c34c
2 changed files with 22 additions and 14 deletions
|
|
@ -194,7 +194,8 @@ def _checkLevel(level):
|
|||
raise ValueError("Unknown level: %r" % level)
|
||||
rv = _nameToLevel[level]
|
||||
else:
|
||||
raise TypeError("Level not an integer or a valid string: %r" % level)
|
||||
raise TypeError("Level not an integer or a valid string: %r"
|
||||
% (level,))
|
||||
return rv
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue