summaryrefslogtreecommitdiff
path: root/cherrypy/lib
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-09-02 10:02:31 -0400
committerJason R. Coombs <jaraco@jaraco.com>2018-09-02 10:02:39 -0400
commit290cc321bbbada3af4fde5eec14751d9a3e9d73d (patch)
treecb3f58a93238e45d249f0f710c68c0d03f75c1b8 /cherrypy/lib
parent63c6a22996a6b8744a5314abd389618f8928b599 (diff)
downloadcherrypy-git-290cc321bbbada3af4fde5eec14751d9a3e9d73d.tar.gz
Remove more references to six in doctest
Diffstat (limited to 'cherrypy/lib')
-rw-r--r--cherrypy/lib/httputil.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/cherrypy/lib/httputil.py b/cherrypy/lib/httputil.py
index db35b6e3..ddafee5b 100644
--- a/cherrypy/lib/httputil.py
+++ b/cherrypy/lib/httputil.py
@@ -278,11 +278,11 @@ def valid_status(status):
If status has no reason-phrase is supplied, a default reason-
phrase will be provided.
- >>> from six.moves import http_client
- >>> from six.moves.BaseHTTPServer import BaseHTTPRequestHandler
- >>> valid_status(http_client.ACCEPTED) == (
- ... int(http_client.ACCEPTED),
- ... ) + BaseHTTPRequestHandler.responses[http_client.ACCEPTED]
+ >>> import http.client
+ >>> from http.server import BaseHTTPRequestHandler
+ >>> valid_status(http.client.ACCEPTED) == (
+ ... int(http.client.ACCEPTED),
+ ... ) + BaseHTTPRequestHandler.responses[http.client.ACCEPTED]
True
"""