binarydud/pyres — pull request #115 by joeshaw (2012-07-18 17:39:56+00:00)
Title: before_perform() & after_perform() should be called on class, not pass i...

...t in

Fixes a problem where you would have:

@classmethod
def before_perform(cls, metadata):
pass

and you would get an exception:

...
before_perform(payload_class, metadata)
TypeError: before_perform() takes exactly 2 arguments (3 given)