mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Ignore encoding declarations inside strings. Fixes #603509.
This commit is contained in:
parent
65b7282ef7
commit
f62a89b1e0
3 changed files with 18 additions and 2 deletions
|
|
@ -101,7 +101,7 @@ The encoding is used for all lexical analysis, in particular to find
|
|||
the end of a string, and to interpret the contents of Unicode literals.
|
||||
String literals are converted to Unicode for syntactical analysis,
|
||||
then converted back to their original encoding before interpretation
|
||||
starts.
|
||||
starts. The encoding declaration must appear on a line of its own.
|
||||
|
||||
\subsection{Explicit line joining\label{explicit-joining}}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue