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