diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-09-02 09:42:47 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-09-02 09:42:47 -0400 |
commit | d8213f2eb57c713bd675a1a82a43896e0308f3aa (patch) | |
tree | 6e13944e69f8dd9f171e88b6f9c8103f0309d560 /cherrypy/test/logtest.py | |
parent | 919637b0897284b76ed8165179ab37fe17fee58b (diff) | |
download | cherrypy-git-d8213f2eb57c713bd675a1a82a43896e0308f3aa.tar.gz |
Remove reliance on six
Diffstat (limited to 'cherrypy/test/logtest.py')
-rw-r--r-- | cherrypy/test/logtest.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cherrypy/test/logtest.py b/cherrypy/test/logtest.py index ed8f1540..cc3afcfe 100644 --- a/cherrypy/test/logtest.py +++ b/cherrypy/test/logtest.py @@ -4,8 +4,6 @@ import sys import time from uuid import UUID -import six - from cherrypy._cpcompat import text_or_bytes, ntob @@ -121,7 +119,7 @@ class LogCase(object): if marker is None: return open(logfile, 'rb').readlines() - if isinstance(marker, six.text_type): + if isinstance(marker, str): marker = marker.encode('utf-8') data = [] in_region = False @@ -201,7 +199,7 @@ class LogCase(object): # Single arg. Use __getitem__ and allow lines to be str or list. if isinstance(lines, (tuple, list)): lines = lines[0] - if isinstance(lines, six.text_type): + if isinstance(lines, str): lines = lines.encode('utf-8') if lines not in data[sliceargs]: msg = '%r not found on log line %r' % (lines, sliceargs) @@ -221,7 +219,7 @@ class LogCase(object): start, stop = sliceargs for line, logline in zip(lines, data[start:stop]): - if isinstance(line, six.text_type): + if isinstance(line, str): line = line.encode('utf-8') if line not in logline: msg = '%r not found in log' % line |