Merge ~cjwatson/launchpad:py3-buildmaster-doctest-unicode-strings into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: eea98450a2ad8a6573d50abfd8eeba421fc7c594
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:py3-buildmaster-doctest-unicode-strings
Merge into: launchpad:master
Diff against target: 52 lines (+9/-8)
2 files modified
lib/lp/buildmaster/doc/builder.txt (+5/-4)
lib/lp/buildmaster/doc/buildqueue.txt (+4/-4)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+396733@code.launchpad.net

Commit message

lp.buildmaster: Fix u'...' doctest examples for Python 3

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/lib/lp/buildmaster/doc/builder.txt b/lib/lp/buildmaster/doc/builder.txt
index e8249ad..7fe82f7 100644
--- a/lib/lp/buildmaster/doc/builder.txt
+++ b/lib/lp/buildmaster/doc/builder.txt
@@ -74,8 +74,8 @@ The 'new' method will create a new builder in the database.
74 >>> with admin_logged_in():74 >>> with admin_logged_in():
75 ... bnew = builderset.new(75 ... bnew = builderset.new(
76 ... [1], 'http://dummy.com:8221/', 'dummy', 'Dummy Title', 1)76 ... [1], 'http://dummy.com:8221/', 'dummy', 'Dummy Title', 1)
77 >>> bnew.name77 >>> print(bnew.name)
78 u'dummy'78 dummy
7979
80'getBuilders' returns builders with the 'active' flag set, ordered by80'getBuilders' returns builders with the 'active' flag set, ordered by
81virtualization status, architecture, then name.81virtualization status, architecture, then name.
@@ -102,8 +102,9 @@ Processor/virtualization.
102102
103There are no 'amd64' build queue entries.103There are no 'amd64' build queue entries.
104104
105 >>> queue_sizes['nonvirt'].keys()105 >>> for arch_tag in queue_sizes['nonvirt']:
106 [u'386']106 ... print(arch_tag)
107 386
107108
108The virtualized build queue for 386 is also empty.109The virtualized build queue for 386 is also empty.
109110
diff --git a/lib/lp/buildmaster/doc/buildqueue.txt b/lib/lp/buildmaster/doc/buildqueue.txt
index d39e096..e55c68a 100644
--- a/lib/lp/buildmaster/doc/buildqueue.txt
+++ b/lib/lp/buildmaster/doc/buildqueue.txt
@@ -51,16 +51,16 @@ the job in question:
51The 'builder' attribute provides the IBuilder instance of the builder51The 'builder' attribute provides the IBuilder instance of the builder
52currently processing this job:52currently processing this job:
5353
54 >>> bq.builder.name54 >>> print(bq.builder.name)
55 u'bob'55 bob
5656
57'logtail' is a text field which stores up to 1 Kbyte of the last57'logtail' is a text field which stores up to 1 Kbyte of the last
58logged actions during the build process, it is updated according to the58logged actions during the build process, it is updated according to the
59frequency set in buildd-slavescanner, normally 10 seconds, see59frequency set in buildd-slavescanner, normally 10 seconds, see
60buildd-slavescanner.txt for further information:60buildd-slavescanner.txt for further information:
6161
62 >>> bq.logtail62 >>> print(bq.logtail)
63 u'Dummy sampledata entry, not processing'63 Dummy sampledata entry, not processing
6464
65'lastscore' is the heuristic index generated by queuebuilder to order65'lastscore' is the heuristic index generated by queuebuilder to order
66the dispatching process, see more information in66the dispatching process, see more information in

Subscribers

People subscribed via source and target branches

to status/vote changes: