]> 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:47:51 +0000 (09:47 -0800)
committerGitHub <noreply@github.com>
Tue, 7 Jan 2020 17:47:51 +0000 (09:47 -0800)
commit535a3c4e3da2f0076bd62f04fb2cc44999fc2419
tree1133d10667f4752be30e3c99821695e5f8dca139
parentd46dec981abdefba56336521c7587c8554bb1b9d
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]