X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=geekigeeki.py;fp=geekigeeki.py;h=a9aa019400d5e166e662668def9a1c8fd6ba7bec;hb=f223be8a781401fb22428712f25fe3531fe503be;hp=b85a3a2ad1be68264733b5cae74ef9710436728e;hpb=2fcd242301699667836d3dce840cb101bec904c7;p=geekigeeki.git 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('#'):