[Zope] Re: [Zope-dev] Call Profiler

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Sat, 02 Feb 2002 00:58:03 +1100


>>> Oleg Broytmann wrote
> On Fri, Feb 01, 2002 at 11:52:40AM +0000, J=FAlio Dinis Silva wrote:
> >      return self.profiler_call_original(*args, **kw)
> > SyntaxError: invalid syntax
> > Any hints on a workaround to python 1.5.2?
>    Rewrite this to use apply().

To be more precise, rewrite it as:

      apply(self.profiler_call_original, args, kw)

There may be other occurances of the same style of code - it's only been
tested on py2.1/zope2.4

Anthony