I went for a version check instead of exception-handling. This allows destar to run, but I suspect there are other issues as quixote 1.2 was written for Python 2.3 and is not being updated upstream.
Ben. diff -u quixote1-1.2/ptl_compile.py quixote1-1.2/ptl_compile.py --- quixote1-1.2/ptl_compile.py +++ quixote1-1.2/ptl_compile.py @@ -44,6 +44,12 @@ MARKUP_CLASS = "htmltext" MARKUP_MANGLED_CLASS = "_q_htmltext" +# Relative import level argument for "import from" statement +if sys.version_info >= (2, 5): + _from_level = [0] +else: + _from_level = [] + class TemplateTransformer(transformer.Transformer): def __init__(self, *args, **kwargs): @@ -55,8 +61,9 @@ # beginning of the module. doc = None # self.get_docstring(nodelist, symbol.file_input) - io_imp = ast.From(IO_MODULE, [(IO_CLASS, None)]) - markup_imp = ast.From(MARKUP_MODULE, [(MARKUP_CLASS, None)]) + io_imp = ast.From(IO_MODULE, [(IO_CLASS, None)], *_from_level) + markup_imp = ast.From(MARKUP_MODULE, [(MARKUP_CLASS, None)], + *_from_level) markup_assign = ast.Assign([ast.AssName(MARKUP_MANGLED_CLASS, OP_ASSIGN)], ast.Name(MARKUP_CLASS)) diff -u quixote1-1.2/debian/changelog quixote1-1.2/debian/changelog --- quixote1-1.2/debian/changelog +++ quixote1-1.2/debian/changelog @@ -1,3 +1,10 @@ +quixote1 (1.2-4.1) unstable; urgency=low + + * Non-maintainer upload + * Update ptl_compile for compatibility with Python 2.5 (Closes: #484360) + + -- Ben Hutchings <[EMAIL PROTECTED]> Fri, 28 Nov 2008 23:16:58 +0000 + quixote1 (1.2-4) unstable; urgency=low * Updated to the new python policy (Closes: #380926) --- END --- -- Ben Hutchings compatible: Gracefully accepts erroneous data from any source
signature.asc
Description: This is a digitally signed message part