From f12cda0bc38bacadc75c87fa254a312cb6070617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 3 Sep 2002 11:56:15 +0000 Subject: [PATCH] Require that the encoding declaration is on a line of its own, to simplify parsing. --- pep-0263.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pep-0263.txt b/pep-0263.txt index e5bf1aa15..347a962a1 100644 --- a/pep-0263.txt +++ b/pep-0263.txt @@ -54,7 +54,9 @@ Defining the Encoding More precise, the first or second line must match the regular expression "coding[:=]\s*([\w-_.]+)". The first group of this expression is then interpreted as encoding name. If the encoding - is unknown to Python, an error is raised during compilation. + is unknown to Python, an error is raised during compilation. There + must not be any Python statement on the line that contains the + encoding declartation. To aid with platforms such as Windows, which add Unicode BOM marks to the beginning of Unicode files, the UTF-8 signature