From 8bf05b0b5c600445c28cf7e2033c1b6213d11982 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 18 Nov 2015 22:43:07 +0200 Subject: Store symptom codes as two-tuples instead --- gsxws/comptia.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gsxws') diff --git a/gsxws/comptia.py b/gsxws/comptia.py index a12c046..3cd47d7 100644 --- a/gsxws/comptia.py +++ b/gsxws/comptia.py @@ -68,10 +68,10 @@ class CompTIA(GsxObject): root = doc.find('.//comptiaInfo') for el in root.findall(".//comptiaGroup"): - group = {} + group = [] comp_id = unicode(el[0].text) for ci in el.findall("comptiaCodeInfo"): - group[ci[0].text] = unicode(ci[1].text) + group.append((ci[0].text, unicode(ci[1].text)),) self._comptia[comp_id] = group -- cgit v1.2.3