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:
Daniel Glus 2018-06-15 15:31:53 -04:00 committed by Brett Cannon
parent 6d5ec660b4
commit 65edc87719
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ or::
More precisely, the first or second line must match the following More precisely, the first or second line must match the following
regular expression:: regular expression::
^[ \t\v]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+) ^[ \t\f]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+)
The first group of this 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