]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #1011144: Correct regex for coding decls.
authorMartin v. Löwis <martin@v.loewis.de>
Wed, 18 Aug 2004 13:25:05 +0000 (13:25 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Wed, 18 Aug 2004 13:25:05 +0000 (13:25 +0000)
Doc/ref/ref2.tex

index 375604f062c2faea564838a0973a018935a02767..10cfc069d4aed3413f2a60d6fff505d21b503b53 100644 (file)
@@ -75,7 +75,7 @@ Comments are ignored by the syntax; they are not tokens.
 \subsection{Encoding declarations\label{encodings}}
 
 If a comment in the first or second line of the Python script matches
-the regular expression \regexp{coding[=:]\e s*([\e w-_.]+)}, this comment is
+the regular expression \regexp{coding[=:]\e s*([-\e w.]+)}, this comment is
 processed as an encoding declaration; the first group of this
 expression names the encoding of the source code file. The recommended
 forms of this expression are