summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-02-12 10:17:00 (GMT)
committerGitHub <noreply@github.com>2020-02-12 10:17:00 (GMT)
commit0cc6b5e559b8303b18fdd56c2befd900fe7b5e35 (patch)
treeff67b4924030ac8600837f8aea60bb5eb48473ad /Misc
parentf4f445b69306c68a2ba8ce8eb8c6cb3064db5fe7 (diff)
downloadcpython-0cc6b5e559b8303b18fdd56c2befd900fe7b5e35.zip
cpython-0cc6b5e559b8303b18fdd56c2befd900fe7b5e35.tar.gz
cpython-0cc6b5e559b8303b18fdd56c2befd900fe7b5e35.tar.bz2
bpo-39219: Fix SyntaxError attributes in the tokenizer. (GH-17828)
* Always set the text attribute. * Correct the offset attribute for non-ascii sources.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-01-05-13-36-08.bpo-39219.uHtKd4.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-01-05-13-36-08.bpo-39219.uHtKd4.rst b/Misc/NEWS.d/next/Core and Builtins/2020-01-05-13-36-08.bpo-39219.uHtKd4.rst
new file mode 100644
index 0000000..dac8360
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-01-05-13-36-08.bpo-39219.uHtKd4.rst
@@ -0,0 +1,2 @@
+Syntax errors raised in the tokenizer now always set correct "text" and
+"offset" attributes.