summaryrefslogtreecommitdiffstats
path: root/Lib/logging/__init__.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2015-03-18 08:47:58 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2015-03-18 08:47:58 (GMT)
commitd55436ace3cb908e0f7a1f368a2cd8879175947d (patch)
tree1b7dca536501e3f9ebb3cc51ffcfc1206ce12930 /Lib/logging/__init__.py
parentab6b9f8a5b033abaa5a8c19ddc19ab402851c0d7 (diff)
downloadcpython-d55436ace3cb908e0f7a1f368a2cd8879175947d.zip
cpython-d55436ace3cb908e0f7a1f368a2cd8879175947d.tar.gz
cpython-d55436ace3cb908e0f7a1f368a2cd8879175947d.tar.bz2
Issue #23207: Improved kwarg validation.
Diffstat (limited to 'Lib/logging/__init__.py')
-rw-r--r--Lib/logging/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 9a8685b..e866b96 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -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)