From f2e02da1647b1b8e676f46d4e72c33f396fea243 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 10 Jun 2009 21:47:55 -0400 Subject: Minor cleanup: don't use the types module so much. --- coverage/codeunit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coverage/codeunit.py') diff --git a/coverage/codeunit.py b/coverage/codeunit.py index a43ca94..a4e029b 100644 --- a/coverage/codeunit.py +++ b/coverage/codeunit.py @@ -1,6 +1,6 @@ """Code unit (module) handling for Coverage.""" -import glob, os, types +import glob, os def code_unit_factory(morfs, file_locator, omit_prefixes=None): """Construct a list of CodeUnits from polymorphic inputs. @@ -15,7 +15,7 @@ def code_unit_factory(morfs, file_locator, omit_prefixes=None): """ # Be sure we have a list. - if not isinstance(morfs, types.ListType): + if not isinstance(morfs, (list, tuple)): morfs = [morfs] # On Windows, the shell doesn't expand wildcards. Do it here. -- cgit v1.2.1