PEP 263: fix typo in coding regex (#672)
The characters before the # in a coding declaration line can be spaces, tabs, or form feeds; the escape sequence for a form feed is a `\f`, not a `\v` as is shown here.
This commit is contained in:
parent
6d5ec660b4
commit
65edc87719
|
@ -72,7 +72,7 @@ or::
|
|||
More precisely, the first or second line must match the following
|
||||
regular expression::
|
||||
|
||||
^[ \t\v]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+)
|
||||
^[ \t\f]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+)
|
||||
|
||||
The first group of this
|
||||
expression is then interpreted as encoding name. If the encoding
|
||||
|
|
Loading…
Reference in New Issue