]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-92986: Fix ast.unparse when ImportFrom.level is None (#92992)
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>
Mon, 5 Sep 2022 17:14:50 +0000 (10:14 -0700)
committerGitHub <noreply@github.com>
Mon, 5 Sep 2022 17:14:50 +0000 (20:14 +0300)
commit200c9a8da0e2b892c476807e986009c01327e781
treef44c3b45c7e36e879a7f2bf6f613cfbdabc69936
parent2c7d2e8d46164efb6e27a64081d8e949f6876515
gh-92986: Fix ast.unparse when ImportFrom.level is None (#92992)

This doesn't happen naturally, but is allowed by the ASDL and compiler.
We don't want to change ASDL for backward compatibility reasons
(#57645, #92987)
Lib/ast.py
Lib/test/test_unparse.py
Misc/NEWS.d/next/Library/2022-05-19-22-34-42.gh-issue-92986.e6uKxj.rst [new file with mode: 0644]