summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-06-08 00:55:53 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-06-08 00:55:53 (GMT)
commit66f80e92c31cdcede9951d661b3538d862f632b1 (patch)
tree2abc71cff5289a96391c7c35b37ad722e5978e41
parent9d19da701db80aff583c98fd3278b4f871fc2e05 (diff)
parent96e0430dfb36c5fa336684601bf271b0ce43e367 (diff)
downloadcpython-66f80e92c31cdcede9951d661b3538d862f632b1.zip
cpython-66f80e92c31cdcede9951d661b3538d862f632b1.tar.gz
cpython-66f80e92c31cdcede9951d661b3538d862f632b1.tar.bz2
merge 3.4 (#12063)
-rw-r--r--Doc/library/tokenize.rst18
-rw-r--r--Misc/ACKS1
2 files changed, 19 insertions, 0 deletions
diff --git a/Doc/library/tokenize.rst b/Doc/library/tokenize.rst
index 37d9f41..bd6b121 100644
--- a/Doc/library/tokenize.rst
+++ b/Doc/library/tokenize.rst
@@ -131,6 +131,24 @@ function it uses to do this is available:
.. versionadded:: 3.2
+.. exception:: TokenError
+
+ Raised when either a docstring or expression that may be split over several
+ lines is not completed anywhere in the file, for example::
+
+ """Beginning of
+ docstring
+
+ or::
+
+ [1,
+ 2,
+ 3
+
+Note that unclosed single-quoted strings do not cause an error to be
+raised. They are tokenized as ``ERRORTOKEN``, followed by the tokenization of
+their contents.
+
.. _tokenize-cli:
diff --git a/Misc/ACKS b/Misc/ACKS
index 7a5860a..960035d 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -755,6 +755,7 @@ Julia Lawall
Chris Lawrence
Brian Leair
Mathieu Leduc-Hamel
+Amandine Lee
Antony Lee
Christopher Lee
Inyeol Lee