Extended the coding RE
This commit is contained in:
parent
22b92dc492
commit
b96b9c4ea3
|
@ -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().
|
||||
|
|
Loading…
Reference in New Issue