summaryrefslogtreecommitdiff
path: root/cherrypy/test/test_http.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-06-05 17:36:38 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-06-05 17:36:38 -0400
commit86e928d458ca501a601ea1c7f25f8add2855c336 (patch)
treeb16fcd2c8174e61249c9914db36dcee98a6e9972 /cherrypy/test/test_http.py
parent0a0b2e0f109caf003d2cc32cadbcbaa094de7d33 (diff)
downloadcherrypy-git-86e928d458ca501a601ea1c7f25f8add2855c336.tar.gz
Rely on six for Python 3 differentiation
Diffstat (limited to 'cherrypy/test/test_http.py')
-rw-r--r--cherrypy/test/test_http.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/cherrypy/test/test_http.py b/cherrypy/test/test_http.py
index a6bc5614..6511ff4f 100644
--- a/cherrypy/test/test_http.py
+++ b/cherrypy/test/test_http.py
@@ -5,10 +5,12 @@ import mimetypes
import socket
import sys
+import six
+
from mock import patch
import cherrypy
-from cherrypy._cpcompat import HTTPConnection, HTTPSConnection, ntob, py3k
+from cherrypy._cpcompat import HTTPConnection, HTTPSConnection, ntob
def encode_multipart_formdata(files):
@@ -70,13 +72,13 @@ class HTTPTests(helper.CPWebCase):
count += 1
else:
if count:
- if py3k:
+ if six.PY3:
curchar = chr(curchar)
summary.append("%s * %d" % (curchar, count))
count = 1
curchar = c
if count:
- if py3k:
+ if six.PY3:
curchar = chr(curchar)
summary.append("%s * %d" % (curchar, count))
return ", ".join(summary)