fnp
/
django-cas-provider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
31ffd59
)
Fixed a syntax error in lxml namespace registration code.
author
zuber
<marek@stepniowski.com>
Mon, 12 Oct 2009 18:24:40 +0000
(20:24 +0200)
committer
zuber
<marek@stepniowski.com>
Mon, 12 Oct 2009 18:24:40 +0000
(20:24 +0200)
cas_provider/xml.py
patch
|
blob
|
history
diff --git
a/cas_provider/xml.py
b/cas_provider/xml.py
index
012fb41
..
da56a97
100644
(file)
--- a/
cas_provider/xml.py
+++ b/
cas_provider/xml.py
@@
-9,7
+9,8
@@
try:
NSMAP[prefix] = uri
def ElementRoot(*args, **kwargs):
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:
except ImportError:
try: