From: Bernie Innocenti Date: Mon, 15 Dec 2008 03:07:21 +0000 (-0500) Subject: Manual Python 3.0 fixups X-Git-Tag: v4.0~19 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f223be8a781401fb22428712f25fe3531fe503be;p=geekigeeki.git Manual Python 3.0 fixups We still have issues with binary vs unicode --- diff --git a/geekigeeki.py b/geekigeeki.py old mode 100644 new mode 100755 index b85a3a2..a9aa019 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3.0 # -*- coding: utf-8 -*- # # Copyright 1999, 2000 Martin Pool @@ -547,7 +547,7 @@ class WikiFormatter: indent_re = re.compile(r"^\s*") tr_re = re.compile(r"^\s*\|\|") eol_re = re.compile(r"\r?\n") - for self.line in eol_re.split(self.raw.expandtabs()): + for self.line in eol_re.split(str(self.raw).expandtabs()): # Skip ACLs if self.in_header: if self.line.startswith('#'):