[PATCH 29 of 54] Vulnerability: remove unused functionnality
Wald Commits
scm-commit at wald.intevation.org
Wed Jan 7 10:56:46 CET 2015
# HG changeset patch
# User Benoît Allard <benoit.allard at greenbone.net>
# Date 1414405413 -3600
# Node ID e317097af486a4e032af713d3efc31b923ba37ec
# Parent 934c510f80772165f70b4ee15e2393ee09afb373
Vulnerability: remove unused functionnality
diff -r 934c510f8077 -r e317097af486 farolluz/vulnerability.py
--- 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):
More information about the Farol-commits
mailing list