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

« back to all changes in this revision

Viewing changes to src/lazr/restful/docs/webservice-declarations.rst

  • 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:
1291
1291
(For the URL generation to work, we need to register an IAbsoluteURL
1292
1292
adapter and set the request as the current interaction.)
1293
1293
 
1294
 
    >>> from urllib import quote
 
1294
    >>> from six.moves.urllib.parse import quote
1295
1295
    >>> from zope.component import provideAdapter
1296
1296
    >>> from zope.traversing.browser.interfaces import IAbsoluteURL
1297
1297
    >>> from zope.publisher.interfaces.http import IHTTPApplicationRequest