remove None from namespace dict
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 7 Nov 2011 18:59:21 +0000 (13:59 -0500)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 7 Nov 2011 19:02:39 +0000 (14:02 -0500)
sfa/util/xml.py

index 8111050..ddb06e4 100755 (executable)
@@ -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'):