There was an error while loading. Please reload this page.
1 parent 9165f77 commit 2ae4ad7Copy full SHA for 2ae4ad7
1 file changed
Lib/logging/config.py
@@ -97,7 +97,7 @@ def _resolve(name):
97
return found
98
99
def _strip_spaces(alist):
100
- return map(lambda x: x.strip(), alist)
+ return map(str.strip, alist)
101
102
def _create_formatters(cp):
103
"""Create and return formatters"""
@@ -185,7 +185,7 @@ def _install_loggers(cp, handlers, disable_existing):
185
# configure the root first
186
llist = cp["loggers"]["keys"]
187
llist = llist.split(",")
188
- llist = list(map(lambda x: x.strip(), llist))
+ llist = list(_strip_spaces(llist))
189
llist.remove("root")
190
section = cp["logger_root"]
191
root = logging.root
0 commit comments