summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-20 17:23:54 (GMT)
committerBrett Cannon <brett@python.org>2012-04-20 17:23:54 (GMT)
commitc33f3f2339fd3217a0c6fe3df916616abab2fab4 (patch)
tree45b2793ea426faee0669f4a6d34387cd236aff06 /Misc
parentdd9a56953e561076b5573d53f6e4fdd7f42b208c (diff)
downloadcpython-c33f3f2339fd3217a0c6fe3df916616abab2fab4.zip
cpython-c33f3f2339fd3217a0c6fe3df916616abab2fab4.tar.gz
cpython-c33f3f2339fd3217a0c6fe3df916616abab2fab4.tar.bz2
Issue #14629: Mention the filename in SyntaxError exceptions from
tokenizer.detect_encoding() (when available).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index b98cdca..6d3410f 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -55,6 +55,9 @@ Core and Builtins
Library
-------
+- Issue #14629: tokenizer.detect_encoding will specify the filename in the
+ SyntaxError exception if found at readline.__self__.name.
+
- Issue #14629: Raise SyntaxError in tokenizer.detect_encoding if the
first two lines have non-UTF-8 characters without an encoding declaration.