Commit 26f418bd authored by Clément Schreiner's avatar Clément Schreiner
Browse files

Use dict.iteritems() instead of ugly syntax.

parent a763ef32
......@@ -110,8 +110,8 @@ class DebtagsPlugin(BasePlugin):
tags = autotag.get_tags()
if len(tags) == 0:
log.debug('No tag found by heuristics.')
for pkg in tags:
for tag in tags[pkg]:
for pkg, tags in tags.iteritems():
for tag in tags:
self._new_result(Debtag, tag = tag, source = 'autotag',
package = pkg)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment