diff options
Diffstat (limited to 'tests/coverage.py')
-rwxr-xr-x | tests/coverage.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/coverage.py b/tests/coverage.py index 95063b676..89b81e5df 100755 --- a/tests/coverage.py +++ b/tests/coverage.py @@ -69,15 +69,11 @@ import sys import atexit import threading import token -import types import zipimport from socket import gethostname -# Python version compatibility -try: - strclass = basestring # new to 2.3 -except: - strclass = str +import six + # 2. IMPLEMENTATION # @@ -845,7 +841,7 @@ class coverage: # On windows, the shell doesn't expand wildcards. Do it here. globbed = [] for morf in morfs: - if isinstance(morf, strclass): + if isinstance(morf, six.string_types): globbed.extend(glob.glob(morf)) else: globbed.append(morf) |