Skip to content

Commit

Permalink
Call sources.items instead of iteritems.
Browse files Browse the repository at this point in the history
iteritems does not exist in Python 3.
  • Loading branch information
mauritsvanrees committed Aug 16, 2019
1 parent 27f43e2 commit 34004c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plone/releaser/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def checkPackageForUpdates(package_name, **kwargs):
@arg("--interactive", default=False)
def checkAllPackagesForUpdates(**kwargs):
sources = buildout.sources
for package_name, source in Bar("Scanning").iter(sources.iteritems()):
for package_name, source in Bar("Scanning").iter(sources.items()):
pkg = Package(buildout, package_name)
if kwargs["interactive"]:
pkg(action=ACTION_INTERACTIVE)
Expand All @@ -73,7 +73,7 @@ def pulls():

g = Github(client_id=client_id, client_secret=client_secret)

for package_name, source in buildout.sources.iteritems():
for package_name, source in buildout.sources.items():
if source.path:
repo = g.get_repo(source.path)
pulls = [a for a in repo.get_pulls("open") if a.head.ref == source.branch]
Expand Down

0 comments on commit 34004c2

Please sign in to comment.