Extended the coding RE

This commit is contained in:
Marc-André Lemburg 2002-02-28 09:08:39 +00:00
parent 22b92dc492
commit b96b9c4ea3
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,7 @@ Defining the Encoding
# -*- coding: <encoding name> -*-
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().