From 7417257094b91bcea48bd586b565712790fbd47c Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 2 Apr 2002 23:07:13 +0000 Subject: [PATCH] Move the publication site for PEPs to python.org. --- pep2html.py | 36 +++++++++++++++++++++++++----------- style.css | 20 ++++++++++++++------ 2 files changed, 39 insertions(+), 17 deletions(-) diff --git a/pep2html.py b/pep2html.py index 23e0e5c73..c3cadc706 100755 --- a/pep2html.py +++ b/pep2html.py @@ -38,6 +38,7 @@ import cgi import glob import getopt import errno +import random import time PROGRAM = sys.argv[0] @@ -47,8 +48,8 @@ PEPCVSURL = 'http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/python/python/nondis PEPDIRRUL = 'http://www.python.org/peps/' -HOST = "shell.sourceforge.net" # host for update -HDIR = "/home/groups/p/py/python/htdocs/peps" # target host directory +HOST = "www.python.org" # host for update +HDIR = "/ftp/ftp.python.org/pub/www.python.org/peps" # target host directory LOCALVARS = "Local Variables:" # The generated HTML doesn't validate -- you cannot use
and

inside @@ -140,17 +141,28 @@ def fixfile(infile, outfile): title = "PEP " + pep + " -- " + title if title: print >> fo, ' %s' % cgi.escape(title) - print >> fo, ' ' + print >> fo, ' ' print >> fo, '' # body - print >> fo, '' - print >> fo, '