mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
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:
@@ -639,7 +639,7 @@ class RepoManager:
|
|||||||
"""
|
"""
|
||||||
ret = {}
|
ret = {}
|
||||||
for repo_name, _ in self._repos.items():
|
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:
|
if old != new:
|
||||||
ret[repo] = (old, new)
|
ret[repo] = (old, new)
|
||||||
return ret
|
return ret
|
||||||
|
|||||||
Reference in New Issue
Block a user