From b96b9c4ea35d1f8e3283ff225a56c0e3fe08f37f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lemburg?= Date: Thu, 28 Feb 2002 09:08:39 +0000 Subject: [PATCH] Extended the coding RE --- pep-0263.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pep-0263.txt b/pep-0263.txt index a277828aa..c26895bed 100644 --- a/pep-0263.txt +++ b/pep-0263.txt @@ -52,7 +52,7 @@ Defining the Encoding # -*- coding: -*- More precise, the first or second line must match the regular - expression "coding[:=]\s*([\w-_]+)". The first group of this + 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. @@ -145,6 +145,7 @@ Scope History + 1.8: Added '.' to the coding RE. 1.7: Added warnings to phase 1 implementation. Replaced the Latin-1 default encoding with the interpreter's default encoding. Added tweaks to compile().