diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-10-31 13:08:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-31 13:08:03 (GMT) |
commit | 39448adc9db0c0444443a42f13a9d7e1441b88e8 (patch) | |
tree | 6b311cc323760f1231550babdb525e1c6feafef6 /Misc | |
parent | 29f98b46b77ee528477b9a7b335974b9682f7f14 (diff) | |
download | cpython-39448adc9db0c0444443a42f13a9d7e1441b88e8.zip cpython-39448adc9db0c0444443a42f13a9d7e1441b88e8.tar.gz cpython-39448adc9db0c0444443a42f13a9d7e1441b88e8.tar.bz2 |
gh-98811: use full source location to simplify __future__ imports error checking. This also fixes an incorrect error offset. (GH-98812)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-10-28-13-59-51.gh-issue-98811.XQypJa.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-10-28-13-59-51.gh-issue-98811.XQypJa.rst b/Misc/NEWS.d/next/Core and Builtins/2022-10-28-13-59-51.gh-issue-98811.XQypJa.rst new file mode 100644 index 0000000..ce90a51 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-10-28-13-59-51.gh-issue-98811.XQypJa.rst @@ -0,0 +1,4 @@ +Use complete source locations to simplify detection of ``__future__`` +imports which are not at the beginning of the file. Also corrects the offset +in the exception raised in one case, which was off by one and impeded +highlighting. |