From 6e7acd77707c16aa79cec22238ef944682d9184b Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 22 Mar 2020 17:27:24 +0000 Subject: Python 2 -> 3 --- https-sync-repos.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'https-sync-repos.py') diff --git a/https-sync-repos.py b/https-sync-repos.py index 4b4c735..13766e3 100755 --- a/https-sync-repos.py +++ b/https-sync-repos.py @@ -23,16 +23,16 @@ for elt in ElementTree(file = urlopen(trac_page)).iter("{http://www.w3.org/1999/ url = elt.text repo = url[len(head):-len(tail)] pull = isdir(repo) - print - print url + print("") + print(url) try: if pull: check_call(("git", "fetch", "--all", "--prune"), cwd = repo) - check_call(("git", "pull"), cwd = repo) + check_call(("git", "merge"), cwd = repo) else: check_call(("git", "clone", url, repo)) except: - print "** Error", "pulling" if pull else "cloning", repo + print("** Error", "pulling" if pull else "cloning", repo) errs += 1 exit(errs) -- cgit v1.2.3