From da1046c39ca7bb7c71c5f5d79f76f1cd9709f25c Mon Sep 17 00:00:00 2001 From: Joel Rivera Date: Thu, 10 Mar 2016 00:14:55 -0600 Subject: Add support for the direct keywords on the calls (e.g. foo=bar) on python3 for the config parser and also give them preference on top of the **kwargs. --- cherrypy/lib/reprconf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cherrypy/lib/reprconf.py b/cherrypy/lib/reprconf.py index 4b6111f9..8af1f777 100644 --- a/cherrypy/lib/reprconf.py +++ b/cherrypy/lib/reprconf.py @@ -427,6 +427,10 @@ class _Builder3: kwargs = {} else: kwargs = self.build(o.kwargs) + if o.keywords is not None: # direct a=b keywords + for kw in o.keywords: + # preference because is a direct keyword against **kwargs + kwargs[kw.arg] = self.build(kw.value) return callee(*(args + starargs), **kwargs) def build_List(self, o): -- cgit v1.2.1