mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #23207: Improved kwarg validation.
This commit is contained in:
parent
ab6b9f8a5b
commit
d55436ace3
2 changed files with 5 additions and 1 deletions
|
@ -1734,8 +1734,8 @@ def basicConfig(**kwargs):
|
|||
"specified together with 'handlers'")
|
||||
if handlers is None:
|
||||
filename = kwargs.pop("filename", None)
|
||||
mode = kwargs.pop("filemode", 'a')
|
||||
if filename:
|
||||
mode = kwargs.pop("filemode", 'a')
|
||||
h = FileHandler(filename, mode)
|
||||
else:
|
||||
stream = kwargs.pop("stream", None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue