summaryrefslogtreecommitdiff
path: root/cherrypy/test/logtest.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-07-24 15:23:17 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-07-24 15:23:17 -0400
commitd3c9807ba42c9b60fa077257e008caae42c3aeb0 (patch)
treec66ccc9942773417883db9aac86d2e4d83e061e2 /cherrypy/test/logtest.py
parent5786a6393617be02a795b040bf02509cab71ce76 (diff)
downloadcherrypy-git-d3c9807ba42c9b60fa077257e008caae42c3aeb0.tar.gz
Use the preferred name text_or_bytes to avoid conflation with 'basestring' which has no equivalent on Python 3.
Diffstat (limited to 'cherrypy/test/logtest.py')
-rw-r--r--cherrypy/test/logtest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/test/logtest.py b/cherrypy/test/logtest.py
index 53f29f11..27feac86 100644
--- a/cherrypy/test/logtest.py
+++ b/cherrypy/test/logtest.py
@@ -5,7 +5,7 @@ import time
import six
-from cherrypy._cpcompat import basestring, ntob
+from cherrypy._cpcompat import text_or_bytes, ntob
try:
@@ -187,7 +187,7 @@ class LogCase(object):
# Multiple args. Use __getslice__ and require lines to be list.
if isinstance(lines, tuple):
lines = list(lines)
- elif isinstance(lines, basestring):
+ elif isinstance(lines, text_or_bytes):
raise TypeError("The 'lines' arg must be a list when "
"'sliceargs' is a tuple.")