[Python-checkins] peps: Moved "Local Variables:" string farther away from the end of the file,
georg.brandl
python-checkins at python.org
Wed Mar 23 21:23:55 CET 2011
http://hg.python.org/peps/rev/eb2bf2b90119
changeset: 63:eb2bf2b90119
user: Barry Warsaw <barry at python.org>
date: Fri Jul 28 06:40:10 2000 +0000
summary:
Moved "Local Variables:" string farther away from the end of the file,
so Emacs doesn't think this actually indicates the beginning of a
local variable section!
files:
pep2html.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/pep2html.py b/pep2html.py
--- a/pep2html.py
+++ b/pep2html.py
@@ -19,6 +19,7 @@
HOST = "shell.sourceforge.net" # host for update
HDIR = "/home/groups/python/htdocs/peps" # target host directory
+LOCALVARS = "Local Variables:"
DTD = ('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"\n'
' "http://www.w3.org/TR/REC-html40/loose.dtd">')
@@ -91,7 +92,7 @@
break
if line[0] != "\f":
if line[0].strip():
- if line.strip() == "Local Variables:":
+ if line.strip() == LOCALVARS:
break
fo.write("</pre>\n<h3>%s</h3>\n<pre>" % line.strip())
title = 0
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list