diff options
author | Filipp Lepalaan <f@230.to> | 2013-03-29 13:18:21 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-03-29 13:18:21 +0200 |
commit | d756fb3edd21bbda0e219abab9bc4821df4dc4f7 (patch) | |
tree | 2b3f3222bc62118cf12435e2938cb07e0a9e2784 /gsxws.py | |
parent | 792c3e44799bd7187edabe877d29eaa9d7feca29 (diff) | |
download | py-gsxws-d756fb3edd21bbda0e219abab9bc4821df4dc4f7.tar.gz py-gsxws-d756fb3edd21bbda0e219abab9bc4821df4dc4f7.tar.bz2 py-gsxws-d756fb3edd21bbda0e219abab9bc4821df4dc4f7.zip |
Fix for last fix
Diffstat (limited to 'gsxws.py')
-rwxr-xr-x | gsxws.py | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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() |