cleaner xml file handling
authorReed Moran <rmoran@cs.princeton.edu>
Wed, 21 Jan 2009 17:03:39 +0000 (17:03 +0000)
committerReed Moran <rmoran@cs.princeton.edu>
Wed, 21 Jan 2009 17:03:39 +0000 (17:03 +0000)
rspec/parse2.py

index cff1db1..096e802 100644 (file)
@@ -34,7 +34,7 @@ def handleIfs(interf):
     # loop through attribs and put key value pair into array
     for i in interf.attributes:
         a = node.attributes[i]
-        ifdict.append({a.name:a.value})
+        ifdict[a.name] = a.value
         
     return ifdict