git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afb18de
)
remove None from namespace dict
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 7 Nov 2011 18:59:21 +0000
(13:59 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 7 Nov 2011 19:02:39 +0000
(14:02 -0500)
sfa/util/xml.py
patch
|
blob
|
history
diff --git
a/sfa/util/xml.py
b/sfa/util/xml.py
index
8111050
..
ddb06e4
100755
(executable)
--- a/
sfa/util/xml.py
+++ b/
sfa/util/xml.py
@@
-60,10
+60,10
@@
class XML:
# it hard for us to write xpath queries for the default naemspace because lxml
# wont understand a None prefix. We will just associate the default namespeace
# with a key named 'default'.
- self.namespaces['default'] = self.namespaces[None]
+ self.namespaces['default'] = self.namespaces.pop(None)
+
else:
self.namespaces['default'] = 'default'
-
# set schema
for key in self.root.attrib.keys():
if key.endswith('schemaLocation'):