From e47a6dbcd4128e6ab7ad82b4d3fc30969dcf305a Mon Sep 17 00:00:00 2001 From: David Goodger Date: Thu, 23 Mar 2006 18:45:55 +0000 Subject: [PATCH] fixed encoding error by replacing all open() calls with codecs.open(), both on input and output (sheesh -- I shoulda known better) --- pep2pyramid.py | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/pep2pyramid.py b/pep2pyramid.py index 920ded1aa..a05357e88 100755 --- a/pep2pyramid.py +++ b/pep2pyramid.py @@ -21,6 +21,7 @@ The optional arguments ``peps`` are either pep numbers or .txt files. import sys import os +import codecs import re import cgi import glob @@ -57,6 +58,13 @@ fixpat = re.compile("((https?|ftp):[-_a-zA-Z0-9/.+~:?#$=&,]+)|(pep-\d+(.txt)?)|" "(PEP\s+(?P\d+))|" ".") +CONTENT_HTML = """\ + +