[Python-checkins] peps: Encoding name can contain underscores.

serhiy.storchaka python-checkins at python.org
Thu Mar 17 09:47:45 EDT 2016


https://hg.python.org/peps/rev/57cd057a06e4
changeset:   6254:57cd057a06e4
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Thu Mar 17 15:47:38 2016 +0200
summary:
  Encoding name can contain underscores.

files:
  pep-0263.txt |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/pep-0263.txt b/pep-0263.txt
--- a/pep-0263.txt
+++ b/pep-0263.txt
@@ -61,7 +61,7 @@
           # vim: set fileencoding=<encoding name> :
 
     More precisely, the first or second line must match the regular
-    expression "^[ \t\v]*#.*?coding[:=][ \t]*([-.a-zA-Z0-9]+)".
+    expression "^[ \t\v]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+)".
     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

-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list