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.
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]: macro_expansion ': False} namespace, **kw)
kw = {'check_
else:
kw = {}
e = pt.pt_errors(
-- is also full of hack.