[V3 Downloader] Fixes issue #1323 (#1324)

The use of `popitem` makes the right side of line 642 return a tuple of the form `(repo, (old, new))` instead of a dictionary of the form `{repo: (old, new)}`, as expected by the left hand side of the same line.
This commit is contained in:
Sebass13 2018-02-19 21:41:19 -06:00 committed by Will
parent 95acf7402d
commit 1cca5ee5cb

View File

@ -639,7 +639,7 @@ class RepoManager:
"""
ret = {}
for repo_name, _ in self._repos.items():
repo, (old, new) = await self.update_repo(repo_name)
repo, (old, new) = (await self.update_repo(repo_name)).popitem()
if old != new:
ret[repo] = (old, new)
return ret