~cjwatson/lazr.restful/py3-pretty-print-helpers

Viewing all changes in revision 259.

  • Committer: Colin Watson
  • Date: 2020-09-02 21:58:55 UTC
  • Revision ID: cjwatson@canonical.com-20200902215855-kshsw19y34a4ekka
Make pprint_entry/pprint_collection format strings in Python 3 style.

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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: