source: trunk/dports/textproc/doclifter/files/patch-doclifter.diff @ 59141

Last change on this file since 59141 was 59141, checked in by blb@…, 10 years ago

textproc/doclifter - switch to python 2.6, ticket #21724 (maintainer timeout)

File size: 1.5 KB
  • doclifter

    old new  
    126126$Id: doclifter,v 1.1336 2006/12/22 14:41:03 esr Exp $
    127127"""
    128128# Requires Python 2.2a
    129 import sys, os, glob, re, sre, string, exceptions, copy, tempfile, time, pprint
     129import sys, os, glob, re, string, exceptions, copy, tempfile, time, pprint
    130130
    131131# This is a speed hack recommended by Armin Rigo.  It cuts runtime by about 33%
    132132# and makes it possible for psyco 1.2 to reduce runtime another 33%.
     
    385385            if line.startswith('.\\" | '):
    386386                print line
    387387                # Someday we'll have more declarations
    388                 (mark, token, as, markup) = line[5:].split()
    389                 if mark != "mark" or as != "as":
     388                (mark, token, asvalue, markup) = line[5:].split()
     389                if mark != "mark" or asvalue != "as":
    390390                    continue
    391391                self.post(token, markup)
    392392    def __repr__(self):
     
    63706370        return result
    63716371    def styleargs(self, args, tag, attribute="", prefix=""):
    63726372        return self.process_punct(args, lambda x: self.stylehook(x, tag, attribute, prefix), 1)
    6373     def replacemacro(self, args, with):
    6374         return self.process_punct(args, lambda x: [with] + x, 1)
     6373    def replacemacro(self, args, replacement):
     6374        return self.process_punct(args, lambda x: [replacement] + x, 1)
    63756375    def eval(self, args):
    63766376        "Evaluate a macro, returning a list."
    63776377        if args[0][0] == '.':
Note: See TracBrowser for help on using the repository browser.