Commit 2ae4ad7c authored by sanjayp's avatar sanjayp Committed by Vinay Sajip

Changed lambda to str.strip in _strip_spaces in logging.config (#4332)

parent 9165f77d
......@@ -97,7 +97,7 @@ def _resolve(name):
return found
def _strip_spaces(alist):
return map(lambda x: x.strip(), alist)
return map(str.strip, alist)
def _create_formatters(cp):
"""Create and return formatters"""
......@@ -185,7 +185,7 @@ def _install_loggers(cp, handlers, disable_existing):
# configure the root first
llist = cp["loggers"]["keys"]
llist = llist.split(",")
llist = list(map(lambda x: x.strip(), llist))
llist = list(_strip_spaces(llist))
llist.remove("root")
section = cp["logger_root"]
root = logging.root
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment