summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-09-05 17:39:52 (GMT)
committerGitHub <noreply@github.com>2022-09-05 17:39:52 (GMT)
commit6cc31af657a0aaf5a8ba0564b35124f1ca542287 (patch)
tree4b97e2e56a271e3f46b354722556a4db82811206 /Misc
parente13f49a0bc253f1b8939fd505547986183761768 (diff)
downloadcpython-6cc31af657a0aaf5a8ba0564b35124f1ca542287.zip
cpython-6cc31af657a0aaf5a8ba0564b35124f1ca542287.tar.gz
cpython-6cc31af657a0aaf5a8ba0564b35124f1ca542287.tar.bz2
gh-92986: Fix ast.unparse when ImportFrom.level is None (GH-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 (GH-57645, GH-92987) (cherry picked from commit 200c9a8da0e2b892c476807e986009c01327e781) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-05-19-22-34-42.gh-issue-92986.e6uKxj.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-05-19-22-34-42.gh-issue-92986.e6uKxj.rst b/Misc/NEWS.d/next/Library/2022-05-19-22-34-42.gh-issue-92986.e6uKxj.rst
new file mode 100644
index 0000000..691c0dd
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-05-19-22-34-42.gh-issue-92986.e6uKxj.rst
@@ -0,0 +1 @@
+Fix :func:`ast.unparse` when ``ImportFrom.level`` is None