From: Tony Mack Date: Mon, 7 Nov 2011 18:59:21 +0000 (-0500) Subject: remove None from namespace dict X-Git-Tag: sfa-2.1-24~36^2^2~3 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=63f75ee1e78335b05eb18b9df0f40185bab8b2a9 remove None from namespace dict --- diff --git a/sfa/util/xml.py b/sfa/util/xml.py index 81110506..ddb06e4f 100755 --- 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'):