[Bug #995522] Fix regex

This commit is contained in:
Andrew M. Kuchling 2004-07-21 21:22:51 +00:00
parent 1c9b3f95bb
commit 1e0563b4e6
1 changed files with 2 additions and 1 deletions

View File

@ -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