]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Jan 2020 17:52:06 +0000 (09:52 -0800)
committerGitHub <noreply@github.com>
Tue, 7 Jan 2020 17:52:06 +0000 (09:52 -0800)
commit39a5c889d30d03a88102e56f03ee0c95db198fb3
tree85b353ab75c589d883c5224eb7222619a283dd22
parentbff48c6734f936257b0cfae58dbea67d43e3b245
bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780)

Correctly parenthesize filter-based statements that contain lambda
expressions in lib2to3.
(cherry picked from commit b821173b5458d137c8d5edb6e9b4997aac800a38)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Lib/lib2to3/fixes/fix_filter.py
Lib/lib2to3/tests/test_fixers.py
Misc/NEWS.d/next/Library/2020-01-01-18-44-52.bpo-38871.3EEOLg.rst [new file with mode: 0644]