Skip to content

Commit

Permalink
PEP 263: fix typo in coding regex (#672)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
enterprisey authored and brettcannon committed Jun 15, 2018
1 parent 6d5ec66 commit 65edc87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pep-0263.txt
Expand Up @@ -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
Expand Down

0 comments on commit 65edc87

Please sign in to comment.