# HG changeset patch # User Alexandre Fayolle # Date 1294153968 -3600 # Node ID 0a18f25c16a7059c3375534bc44296275edffeb1 # Parent 1b091b3a0d1e56f33d929b98bf6410fd3f23364e check the validity of kwargs passed to match_rtype diff -r 1b091b3a0d1e -r 0a18f25c16a7 server/hook.py --- a/server/hook.py Tue Jan 04 15:31:07 2011 +0100 +++ b/server/hook.py Tue Jan 04 16:12:48 2011 +0100 @@ -355,6 +355,7 @@ self.expected = expected self.frometypes = more.pop('frometypes', None) self.toetypes = more.pop('toetypes', None) + assert not more, "unexpected kwargs in match_rtype: %s" % more @lltrace def __call__(self, cls, req, *args, **kwargs):