Doclifter is not compatible with newer Python versions
Bug #498892 reported by
Mathieu Comandon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
doclifter (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: doclifter
Oh noes, a tool written by Eric S. Raymond himself is broken in Ubuntu, this is not acceptable.
The problem is that the code is quite old and has not been updated in years, some variable are reserved keywords of the python language (with, as) . There is also an obsolete module (sre) which can easily be removed.
What freaks me out is that this bug has been left unnoticed for years, and this means that no one has read "The art of Unix programming" by ESR where the tool is mentioned. This is an essential book , read it !
I have attached a patch which solves issues with doclifter.
Related branches
Changed in doclifter (Ubuntu): | |
status: | Fix Committed → In Progress |
Changed in doclifter (Ubuntu): | |
assignee: | Mathieu Comandon (strycore) → Fabrice Coutadeur (fabricesp) |
To post a comment you must log in.
btw you might want the error messages given by Ubuntu's version :
strider@ astoria: ~/dev$ doclifter doclifter" , line 388
File "/usr/bin/
(mark, token, as, markup) = line[5:].split()
strider@astoria:~$ doclifter XvGetStill.3 File "/usr/bin/ doclifter" , line 6381
^SyntaxError: invalid syntax
def replacemacro(self, args, with):
strider@astoria:~$ doclifter XvGetStill.3 doclifter: 129: DeprecationWarning: The sre module is deprecated, please import re.
/usr/bin/
import sys, os, glob, re, sre, string, exceptions, copy, tempfile, time, pprint