Comment 6 for bug 732972

Revision history for this message
Marius Gedminas (mgedmin) wrote :

For the record: that would be r129009 in zope.pagetemplate, r129010 in Zope/branches/2.13, and r129011 in Zope/trunk.

I apologize for the inconvenience. The 'try/except TypeError' makes me cringe, but the only alternative I can come up with --

    if 'check_macro_expansion' in inspect.getargspec(pt.pt_errors)[0]:
        kw = {'check_macro_expansion': False}
    else:
        kw = {}
    e = pt.pt_errors(namespace, **kw)

-- is also full of hack.