Mercurial > farol > farolluz
changeset 28:e317097af486
Vulnerability: remove unused functionnality
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Mon, 27 Oct 2014 11:23:33 +0100 |
parents | 934c510f8077 |
children | e3ee542a89be |
files | farolluz/vulnerability.py |
diffstat | 1 files changed, 4 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/farolluz/vulnerability.py Fri Oct 24 17:06:34 2014 +0200 +++ b/farolluz/vulnerability.py Mon Oct 27 11:23:33 2014 +0100 @@ -136,15 +136,10 @@ if groupid in subelem._groupids: yield subelem - def isMentioningGroupId(self, groupids): - """ Make sure you call this with a list (not a generator or a tuple) - when wished """ - if not isinstance(groupids, list): - groupids = [groupids] - for groupid in groupids: - for _ in self.mentionsGroupId(groupid): - # We only need to know if the generator yield at least one elem. - return True + def isMentioningGroupId(self, groupid): + for _ in self.mentionsGroupId(groupid): + # We only need to know if the generator yield at least one elem. + return True return False def validate(self, productids, groupids):