

def symptoms(self, component=None):
    "\n        Returns all known CompTIA symptom codes or just the ones\n        belonging to the given component code.\n\n        >>> CompTIA().symptoms(0) # doctest: +ELLIPSIS\n        {u'B': [(u'B0A', u'Any Camera issue'), ...\n        "
    r = dict()
    for (g, codes) in self._comptia.items():
        r[g] = list()
        for (k, v) in codes.items():
            r[g].append((k, v))
    return (r[component] if r else r)

dataset/ETHPy150Open filipp/py-gsxws/gsxws/comptia.py CompTIA.symptoms/VarMisuse@86/188 `component`->`r`