From c56dd3f2b7a430e5f870ea6b868ea6e3126bdcd4 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 13 May 2013 11:39:35 +0300 Subject: CompTIA fixes --- gsxws/comptia.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gsxws/comptia.py') diff --git a/gsxws/comptia.py b/gsxws/comptia.py index 02276a8..aad4378 100644 --- a/gsxws/comptia.py +++ b/gsxws/comptia.py @@ -82,10 +82,13 @@ class CompTIA(GsxObject): """ Returns all known CompTIA symptom codes or just the ones belonging to the given component code. + + >>> CompTIA().fetch() # doctest: +ELLIPSIS + {'A': {'989': 'Remote Inoperable', ... """ r = dict() - for g, codes in self.data.items(): + for g, codes in self._data.items(): r[g] = list() for k, v in codes.items(): r[g].append((k, v,)) -- cgit v1.2.3