From df2a7ea3511c2ae66fcb340d56a90e23ea81b406 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 26 Oct 2011 13:38:14 -0400 Subject: [PATCH] use RSpec.parse_dict() instead of manually updating the root element attributes --- sfa/util/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfa/util/record.py b/sfa/util/record.py index 420cc6fb..54c3f9f7 100644 --- a/sfa/util/record.py +++ b/sfa/util/record.py @@ -302,7 +302,7 @@ class SfaRecord(Row): recorddict = self.as_dict() filteredDict = dict([(key, val) for (key, val) in recorddict.iteritems() if key in self.fields.keys()]) record = XML('') - record.root.attrib.update(filteredDict) + record.parse_dict(filteredDict) str = record.toxml() return str -- 2.43.0