Merge lp://staging/~cjwatson/lazr.restful/py3-pretty-print-helpers into lp://staging/lazr.restful

Proposed by Colin Watson
Status: Merged
Merged at revision: 259
Proposed branch: lp://staging/~cjwatson/lazr.restful/py3-pretty-print-helpers
Merge into: lp://staging/lazr.restful
Diff against target: 263 lines (+90/-55)
5 files modified
NEWS.rst (+9/-0)
src/lazr/restful/docs/webservice.rst (+45/-38)
src/lazr/restful/example/base/tests/collection.txt (+10/-10)
src/lazr/restful/example/multiversion/tests/operation.txt (+6/-5)
src/lazr/restful/testing/webservice.py (+20/-2)
To merge this branch: bzr merge lp://staging/~cjwatson/lazr.restful/py3-pretty-print-helpers
Reviewer Review Type Date Requested Status
Ioana Lasc (community) Approve
Review via email: mp+390200@code.staging.launchpad.net

Commit message

Make pprint_entry/pprint_collection format strings in Python 3 style.

Description of the change

Change lazr.restful.testing.webservice.pprint_entry and lazr.restful.testing.webservice.pprint_collection to print text string representations in the Python 3 style ('text' rather than u'text') on both Python 2 and 3. This makes it easier to write bilingual doctests, although existing callers need to change.

Use these helpers in a few more doctests.

To post a comment you must log in.
Revision history for this message
Ioana Lasc (ilasc) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches