From 8c0324bfebcfa820c2f8d0955430cddedaa23e8a Mon Sep 17 00:00:00 2001 From: zuber Date: Mon, 12 Oct 2009 20:24:40 +0200 Subject: [PATCH] Fixed a syntax error in lxml namespace registration code. --- cas_provider/xml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.20.1