~cjwatson/lazr.restful/py3-doctest-encoding

« back to all changes in this revision

Viewing changes to src/lazr/restful/example/base/tests/service.txt

  • Committer: Colin Watson
  • Date: 2020-02-04 13:28:01 UTC
  • mfrom: (234.1.1 six-urllib)
  • Revision ID: cjwatson@canonical.com-20200204132801-2kku642v7nd97rnq
[r=ilasc] Import urllib and friends from six.moves.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    Allow: GET POST
60
60
    ...
61
61
 
62
 
    >>> from urllib import quote
 
62
    >>> from six.moves.urllib.parse import quote
63
63
    >>> print(webservice.delete(quote("/dishes/Roast chicken")))
64
64
    HTTP/1.1 405 Method Not Allowed...
65
65
    Allow: GET PUT PATCH