From 66ebf72cc4674fa2bf25e6e17127c3c3d7b845b6 Mon Sep 17 00:00:00 2001 From: mirii1994 Date: Sun, 12 Jul 2020 19:16:04 +0300 Subject: [PATCH] applied suggestions --- Lib/logging/config.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/logging/config.py b/Lib/logging/config.py index bc323c1ba66..49e5e35dee6 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -113,9 +113,7 @@ def _create_formatters(cp): dfs = cp.get(sectname, "datefmt", raw=True, fallback=None) stl = cp.get(sectname, "style", raw=True, fallback='%') vldstr = cp.get(sectname, "validate", raw=True, fallback="True") - vld = True - if vldstr == "False": - vld = False + vld = (vldstr != "False") c = logging.Formatter class_name = cp[sectname].get("class") if class_name: