From: zuber Date: Mon, 12 Oct 2009 18:24:40 +0000 (+0200) Subject: Fixed a syntax error in lxml namespace registration code. X-Git-Tag: 22.4~32^2~18^2~1^2~6 X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/commitdiff_plain/8c0324bfebcfa820c2f8d0955430cddedaa23e8a?ds=sidebyside;hp=31ffd59fa875a56a90402c36e16d62d877c70c4c Fixed a syntax error in lxml namespace registration code. --- diff --git a/cas_provider/xml.py b/cas_provider/xml.py index 012fb41..da56a97 100644 --- a/cas_provider/xml.py +++ b/cas_provider/xml.py @@ -9,7 +9,8 @@ try: NSMAP[prefix] = uri def ElementRoot(*args, **kwargs): - return etree.Element(*args, nsmap=NSMAP, **kwargs) + kwargs['nsmap'] = NSMAP + return etree.Element(*args, **kwargs) except ImportError: try: