diff options
Diffstat (limited to 'src/mailman/rest/docs/basic.rst')
| -rw-r--r-- | src/mailman/rest/docs/basic.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/rest/docs/basic.rst b/src/mailman/rest/docs/basic.rst index cf02fa4ec..51b287c90 100644 --- a/src/mailman/rest/docs/basic.rst +++ b/src/mailman/rest/docs/basic.rst @@ -57,7 +57,7 @@ an appropriate HTTP 401 Unauthorized error. >>> from httplib2 import Http >>> response, content = Http().request(url, 'GET', None, headers) - >>> print content + >>> print(content) 401 Unauthorized <BLANKLINE> User is not authorized for the REST API @@ -69,7 +69,7 @@ But with the right headers, the request succeeds. ... config.webservice.admin_pass)) >>> headers['Authorization'] = 'Basic ' + auth >>> response, content = Http().request(url, 'GET', None, headers) - >>> print response.status + >>> print(response.status) 200 |
