server/hook.py
changeset 8032 bcb87336c7d2
parent 7990 a673d1d9a738
child 8190 2a3c1b787688
child 8238 087bb529035c
equal deleted inserted replaced
8030:552d85fcb587 8032:bcb87336c7d2
   442 
   442 
   443 class match_rtype(ExpectedValueSelector):
   443 class match_rtype(ExpectedValueSelector):
   444     """accept if parameters specified as initializer arguments are specified
   444     """accept if parameters specified as initializer arguments are specified
   445     in named arguments given to the selector
   445     in named arguments given to the selector
   446 
   446 
   447     :param *expected: parameters (eg `basestring`) which are expected to be
   447     :param \*expected: parameters (eg `basestring`) which are expected to be
   448                       found in named arguments (kwargs)
   448                        found in named arguments (kwargs)
   449     """
   449     """
   450     def __init__(self, *expected, **more):
   450     def __init__(self, *expected, **more):
   451         self.expected = expected
   451         self.expected = expected
   452         self.frometypes = more.pop('frometypes', None)
   452         self.frometypes = more.pop('frometypes', None)
   453         self.toetypes = more.pop('toetypes', None)
   453         self.toetypes = more.pop('toetypes', None)