applied suggestions

This commit is contained in:
mirii1994 2020-07-12 19:16:04 +03:00
parent 930730ac81
commit 66ebf72cc4
1 changed files with 1 additions and 3 deletions

View File

@ -113,9 +113,7 @@ def _create_formatters(cp):
dfs = cp.get(sectname, "datefmt", raw=True, fallback=None) dfs = cp.get(sectname, "datefmt", raw=True, fallback=None)
stl = cp.get(sectname, "style", raw=True, fallback='%') stl = cp.get(sectname, "style", raw=True, fallback='%')
vldstr = cp.get(sectname, "validate", raw=True, fallback="True") vldstr = cp.get(sectname, "validate", raw=True, fallback="True")
vld = True vld = (vldstr != "False")
if vldstr == "False":
vld = False
c = logging.Formatter c = logging.Formatter
class_name = cp[sectname].get("class") class_name = cp[sectname].get("class")
if class_name: if class_name: