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:
11901c7
)
FIX: Changed ET references (which was undefined) to etree in etree module.
author
zuber
<marek@stepniowski.com>
Thu, 15 Oct 2009 17:35:23 +0000
(19:35 +0200)
committer
zuber
<marek@stepniowski.com>
Thu, 15 Oct 2009 17:35:23 +0000
(19:35 +0200)
cas_provider/etree.py
patch
|
blob
|
history
diff --git
a/cas_provider/etree.py
b/cas_provider/etree.py
index
eb6f0be
..
3f95751
100644
(file)
--- a/
cas_provider/etree.py
+++ b/
cas_provider/etree.py
@@
-21,10
+21,10
@@
except ImportError:
import elementtree.ElementTree as etree
try:
import elementtree.ElementTree as etree
try:
- register_namespace =
ET
.register_namespace
+ register_namespace =
etree
.register_namespace
except AttributeError:
def register_namespace(prefix, uri):
except AttributeError:
def register_namespace(prefix, uri):
-
ET
._namespace_map[uri] = prefix
+
etree
._namespace_map[uri] = prefix
def ElementRoot(*args, **kwargs):
return etree.Element(*args, **kwargs)
def ElementRoot(*args, **kwargs):
return etree.Element(*args, **kwargs)