Skip to content

Commit

Permalink
Apply lib2to3.fixes.print
Browse files Browse the repository at this point in the history
  • Loading branch information
garyvdm committed Apr 2, 2014
1 parent 55124a5 commit a86e3d9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
8 changes: 4 additions & 4 deletions examples/latest_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(".")
Expand All @@ -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))

0 comments on commit a86e3d9

Please sign in to comment.