get kwargs as well tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 18 Feb 2009 00:12:36 +0100
branchtls-sprint
changeset 734 4153a82a60a4
parent 733 6df41435ecb7
child 735 d22baa02cbaa
get kwargs as well
vregistry.py
--- a/vregistry.py	Wed Feb 18 00:12:18 2009 +0100
+++ b/vregistry.py	Wed Feb 18 00:12:36 2009 +0100
@@ -644,7 +644,7 @@
         
     """
     return type(selector_func.__name__, (Selector,),
-                {'__call__': lambda self, *args: selector_func(*args)})
+                {'__call__': lambda self, *args, **kwargs: selector_func(*args, **kwargs)})
 
 def _instantiate_selector(selector):
     """ensures `selector` is a `Selector` instance