summaryrefslogtreecommitdiffstats
path: root/Lib/logging
diff options
context:
space:
mode:
authorsanjayp <sanjaypillai11@gmail.com>2017-11-15 09:28:11 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2017-11-15 09:28:11 (GMT)
commit2ae4ad7ca49f2b80a02cbf7ea76d52c615bfedb3 (patch)
tree5d70507b63b8da2642c72385ee13f5dc600934ba /Lib/logging
parent9165f77d5f93a2c12aa0e90853e3ae7212800d3c (diff)
downloadcpython-2ae4ad7ca49f2b80a02cbf7ea76d52c615bfedb3.zip
cpython-2ae4ad7ca49f2b80a02cbf7ea76d52c615bfedb3.tar.gz
cpython-2ae4ad7ca49f2b80a02cbf7ea76d52c615bfedb3.tar.bz2
Changed lambda to str.strip in _strip_spaces in logging.config (#4332)
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py
index b08cba0..7927e76 100644
--- a/Lib/logging/config.py
+++ b/Lib/logging/config.py
@@ -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