From 4e8a817ac24e73f3e2d3e80f6939cefa7e9b0130 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Tue, 30 Dec 2008 06:24:59 +0000 Subject: A few 2.3 cleanup items. --- test/testlib/coverage.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'test/testlib/coverage.py') diff --git a/test/testlib/coverage.py b/test/testlib/coverage.py index 0203dbf7d..fc0f2c236 100644 --- a/test/testlib/coverage.py +++ b/test/testlib/coverage.py @@ -70,11 +70,6 @@ import token import types from socket import gethostname -# Python version compatibility -try: - strclass = basestring # new to 2.3 -except: - strclass = str # 2. IMPLEMENTATION # @@ -799,7 +794,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, basestring): globbed.extend(glob.glob(morf)) else: globbed.append(morf) -- cgit v1.2.1