Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2ae4ad7c
Commit
2ae4ad7c
authored
Nov 15, 2017
by
sanjayp
Committed by
Vinay Sajip
Nov 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed lambda to str.strip in _strip_spaces in logging.config (#4332)
parent
9165f77d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/logging/config.py
Lib/logging/config.py
+2
-2
No files found.
Lib/logging/config.py
View file @
2ae4ad7c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment