[Python-modules-commits] [dulwich] 03/09: Fix python3 compatibility of release robot.
Jelmer Vernooij
jelmer at moszumanska.debian.org
Sun Dec 25 13:51:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
jelmer pushed a commit to branch master
in repository dulwich.
commit c82283af875c85a45d33dc5ec2ce01745eaa660f
Author: Jelmer Vernooij <jelmer at jelmer.uk>
Date: Sun Dec 25 13:17:28 2016 +0000
Fix python3 compatibility of release robot.
---
dulwich/contrib/release_robot.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dulwich/contrib/release_robot.py b/dulwich/contrib/release_robot.py
index e32daa9..ea951db 100644
--- a/dulwich/contrib/release_robot.py
+++ b/dulwich/contrib/release_robot.py
@@ -39,7 +39,7 @@ def get_recent_tags(projdir=PROJDIR):
refs = project.get_refs() # dictionary of refs and their SHA-1 values
tags = {} # empty dictionary to hold tags, commits and datetimes
# iterate over refs in repository
- for key, value in refs.iteritems():
+ for key, value in refs.items():
obj = project.get_object(value) # dulwich object from SHA-1
# check if object is tag
if obj.type_name != 'tag':
@@ -60,7 +60,7 @@ def get_recent_tags(projdir=PROJDIR):
]
# return list of tags sorted by their datetimes from newest to oldest
- return sorted(tags.iteritems(), key=lambda tag: tag[1][0], reverse=True)
+ return sorted(tags.items(), key=lambda tag: tag[1][0], reverse=True)
def get_current_version(pattern=PATTERN, projdir=PROJDIR, logger=None):
@@ -107,4 +107,4 @@ if __name__ == '__main__':
projdir = sys.argv[1]
else:
projdir = PROJDIR
- print get_current_version(projdir=projdir)
+ print(get_current_version(projdir=projdir))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/dulwich.git
More information about the Python-modules-commits
mailing list