aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-03-29 13:18:21 +0200
committerFilipp Lepalaan <f@230.to>2013-03-29 13:18:21 +0200
commitd756fb3edd21bbda0e219abab9bc4821df4dc4f7 (patch)
tree2b3f3222bc62118cf12435e2938cb07e0a9e2784 /gsxws.py
parent792c3e44799bd7187edabe877d29eaa9d7feca29 (diff)
downloadpy-gsxws-d756fb3edd21bbda0e219abab9bc4821df4dc4f7.tar.gz
py-gsxws-d756fb3edd21bbda0e219abab9bc4821df4dc4f7.tar.bz2
py-gsxws-d756fb3edd21bbda0e219abab9bc4821df4dc4f7.zip
Fix for last fix
Diffstat (limited to 'gsxws.py')
-rwxr-xr-xgsxws.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/gsxws.py b/gsxws.py
index a64637e..95552c2 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -251,14 +251,15 @@ class CompTIA:
def symptoms(self, component=None):
symptoms = self.data['symptoms']
- if component:
- r = list()
- for k, v in symptoms[component].items():
- r.append((k, v))
+ if component is None:
+ return symptoms
- return r
+ r = list()
- return symptoms
+ for k, v in symptoms[component].items():
+ r.append((k, v))
+
+ return r
def modifiers(self):
modifiers = list()