diff --git a/docs/conf.py b/docs/conf.py index b50997f68..872db620f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -30,7 +30,7 @@ if rst2pdf.version >= '0.16': extensions.append('rst2pdf.pdfbuilder') except ImportError: - print "[NOTE] In order to build PDF you need rst2pdf with version >=0.16" + print("[NOTE] In order to build PDF you need rst2pdf with version >=0.16") autoclass_content = "both" diff --git a/examples/clone.py b/examples/clone.py index 3c8288ac9..03e5dd925 100644 --- a/examples/clone.py +++ b/examples/clone.py @@ -13,7 +13,7 @@ opts = dict(opts) if len(args) < 2: - print "usage: %s host:path path" % (args[0], ) + print("usage: %s host:path path" % (args[0], )) sys.exit(1) # Connect to the remote repository diff --git a/examples/config.py b/examples/config.py index 41a7829d2..8bc859f68 100644 --- a/examples/config.py +++ b/examples/config.py @@ -9,5 +9,5 @@ repo = Repo(".") config = repo.get_config() -print config.get("core", "filemode") -print config.get(("remote", "origin"), "url") +print(config.get("core", "filemode")) +print(config.get(("remote", "origin"), "url")) diff --git a/examples/latest_change.py b/examples/latest_change.py index cc5327ad0..12b2084b8 100644 --- a/examples/latest_change.py +++ b/examples/latest_change.py @@ -6,7 +6,7 @@ from dulwich.repo import Repo if len(sys.argv) < 2: - print "usage: %s filename" % (sys.argv[0], ) + print("usage: %s filename" % (sys.argv[0], )) sys.exit(1) r = Repo(".") @@ -15,7 +15,7 @@ try: c = iter(w).next().commit except StopIteration: - print "No file %s anywhere in history." % sys.argv[1] + print("No file %s anywhere in history." % sys.argv[1]) else: - print "%s was last changed at %s by %s (commit %s)" % ( - sys.argv[1], c.author, time.ctime(c.author_time), c.id) + print("%s was last changed at %s by %s (commit %s)" % ( + sys.argv[1], c.author, time.ctime(c.author_time), c.id))