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

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: no longer in the source branch.
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
1=== modified file 'doc/developers/integration.txt'
2--- doc/developers/integration.txt 2019-06-16 19:53:27 +0000
3+++ doc/developers/integration.txt 2020-12-11 15:57:49 +0000
4@@ -218,7 +218,7 @@
5 rev = revision_map[revision_id]
6 revno = revno_map[revision_id]
7 revno_string = '.'.join(str(i) for i in revno)
8- print "%s, %s: %s" % (revno_string, rev.committer, text)
9+ print("%s, %s: %s" % (revno_string, rev.committer, text))
10
11
12 Working with branches
13
14=== modified file 'doc/developers/repository-stream.txt'
15--- doc/developers/repository-stream.txt 2017-11-11 12:51:45 +0000
16+++ doc/developers/repository-stream.txt 2020-12-11 15:57:49 +0000
17@@ -166,9 +166,9 @@
18 for record in stream.iter_contents():
19 for factory in record.entries:
20 compression = factory.storage_kind
21- print "Object %s, compression type %s, %d bytes long." % (
22+ print("Object %s, compression type %s, %d bytes long." % (
23 record.key_prefix + factory.key,
24- compression, len(factory.get_bytes_as(compression)))
25+ compression, len(factory.get_bytes_as(compression))))
26
27 This structure should allow stream adapters to be written which can coerce
28 all records to the type of compression that a particular client needs. For
29
30=== modified file 'doc/en/user-guide/hooks.txt'
31--- doc/en/user-guide/hooks.txt 2018-11-20 08:11:03 +0000
32+++ doc/en/user-guide/hooks.txt 2020-12-11 15:57:49 +0000
33@@ -27,7 +27,7 @@
34
35
36 def post_push_hook(push_result):
37- print "The new revno is %d" % push_result.new_revno
38+ print("The new revno is %d" % push_result.new_revno)
39
40
41 branch.Branch.hooks.install_named_hook('post_push', post_push_hook,
42@@ -62,7 +62,7 @@
43 from breezy import hooks
44
45 def post_push_hook(push_result):
46- print "The new revno is %d" % push_result.new_revno
47+ print("The new revno is %d" % push_result.new_revno)
48
49
50 hooks.install_lazy_named_hook('breezy.branch', 'Branch.hooks',

Subscribers

People subscribed via source and target branches