Merge lp:~jelmer/brz/doc-python2-updates into lp:brz/3.1

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: 7655
Merge reported by: The Breezy Bot
Merged at revision: not available
Proposed branch: lp:~jelmer/brz/doc-python2-updates
Merge into: lp:brz/3.1
Diff against target: 50 lines (+5/-5)
3 files modified
doc/developers/integration.txt (+1/-1)
doc/developers/repository-stream.txt (+2/-2)
doc/en/user-guide/hooks.txt (+2/-2)
To merge this branch: bzr merge lp:~jelmer/brz/doc-python2-updates
Reviewer Review Type Date Requested Status
Jelmer Vernooij Approve
Review via email: mp+395239@code.launchpad.net

Commit message

docs: Use print with parentheses, for python 3 compatibility.

Description of the change

docs: Use print with parentheses, for python 3 compatibility.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'doc/developers/integration.txt'
--- doc/developers/integration.txt 2019-06-16 19:53:27 +0000
+++ doc/developers/integration.txt 2020-12-11 15:57:49 +0000
@@ -218,7 +218,7 @@
218 rev = revision_map[revision_id]218 rev = revision_map[revision_id]
219 revno = revno_map[revision_id]219 revno = revno_map[revision_id]
220 revno_string = '.'.join(str(i) for i in revno)220 revno_string = '.'.join(str(i) for i in revno)
221 print "%s, %s: %s" % (revno_string, rev.committer, text)221 print("%s, %s: %s" % (revno_string, rev.committer, text))
222222
223223
224Working with branches224Working with branches
225225
=== modified file 'doc/developers/repository-stream.txt'
--- doc/developers/repository-stream.txt 2017-11-11 12:51:45 +0000
+++ doc/developers/repository-stream.txt 2020-12-11 15:57:49 +0000
@@ -166,9 +166,9 @@
166 for record in stream.iter_contents():166 for record in stream.iter_contents():
167 for factory in record.entries:167 for factory in record.entries:
168 compression = factory.storage_kind168 compression = factory.storage_kind
169 print "Object %s, compression type %s, %d bytes long." % (169 print("Object %s, compression type %s, %d bytes long." % (
170 record.key_prefix + factory.key,170 record.key_prefix + factory.key,
171 compression, len(factory.get_bytes_as(compression)))171 compression, len(factory.get_bytes_as(compression))))
172172
173This structure should allow stream adapters to be written which can coerce173This structure should allow stream adapters to be written which can coerce
174all records to the type of compression that a particular client needs. For174all records to the type of compression that a particular client needs. For
175175
=== modified file 'doc/en/user-guide/hooks.txt'
--- doc/en/user-guide/hooks.txt 2018-11-20 08:11:03 +0000
+++ doc/en/user-guide/hooks.txt 2020-12-11 15:57:49 +0000
@@ -27,7 +27,7 @@
2727
2828
29 def post_push_hook(push_result):29 def post_push_hook(push_result):
30 print "The new revno is %d" % push_result.new_revno30 print("The new revno is %d" % push_result.new_revno)
3131
3232
33 branch.Branch.hooks.install_named_hook('post_push', post_push_hook,33 branch.Branch.hooks.install_named_hook('post_push', post_push_hook,
@@ -62,7 +62,7 @@
62 from breezy import hooks62 from breezy import hooks
6363
64 def post_push_hook(push_result):64 def post_push_hook(push_result):
65 print "The new revno is %d" % push_result.new_revno65 print("The new revno is %d" % push_result.new_revno)
6666
6767
68 hooks.install_lazy_named_hook('breezy.branch', 'Branch.hooks',68 hooks.install_lazy_named_hook('breezy.branch', 'Branch.hooks',

Subscribers

People subscribed via source and target branches