[Bug #995522] Fix regex
This commit is contained in:
parent
1c9b3f95bb
commit
1e0563b4e6
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
PEP: 0263
|
PEP: 0263
|
||||||
Title: Defining Python Source Code Encodings
|
Title: Defining Python Source Code Encodings
|
||||||
Version: $Revision$
|
Version: $Revision$
|
||||||
|
@ -52,7 +53,7 @@ Defining the Encoding
|
||||||
# -*- coding: <encoding name> -*-
|
# -*- coding: <encoding name> -*-
|
||||||
|
|
||||||
More precisely, the first or second line must match the regular
|
More precisely, 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
|
expression is then interpreted as encoding name. If the encoding
|
||||||
is unknown to Python, an error is raised during compilation. There
|
is unknown to Python, an error is raised during compilation. There
|
||||||
must not be any Python statement on the line that contains the
|
must not be any Python statement on the line that contains the
|
||||||
|
|
Loading…
Reference in New Issue