Mercurial > farol > farolluz
diff farolluz/parsers/cvrf.py @ 15:dcc946b30343
Consolidate productTree edition
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 09 Oct 2014 14:21:07 +0200 |
parents | 4c6e15514a6d |
children | 934c510f8077 |
line wrap: on
line diff
--- a/farolluz/parsers/cvrf.py Thu Oct 09 10:09:12 2014 +0200 +++ b/farolluz/parsers/cvrf.py Thu Oct 09 14:21:07 2014 +0200 @@ -324,8 +324,8 @@ cvrfptree = cvrfdoc.find(UN('prod', 'ProductTree')) if cvrfptree is not None: producttree = doc.createProductTree() - for branch in parseProdBranch(cvrfptree, producttree): - producttree.addBranch(branch) + # We need to exhaust our generator ... + for _ in parseProdBranch(cvrfptree, producttree): pass for product in cvrfptree.findall(UN('prod', 'FullProductName')): producttree.addProduct(parseFullProductName(product, producttree))