diff options
Diffstat (limited to 'coverage/codeunit.py')
-rw-r--r-- | coverage/codeunit.py | 4 |
1 files changed, 2 insertions, 2 deletions
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. |