diff options
Diffstat (limited to 'coverage/data.py')
-rw-r--r-- | coverage/data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/data.py b/coverage/data.py index 9e1e058f..c81e1e25 100644 --- a/coverage/data.py +++ b/coverage/data.py @@ -1,6 +1,6 @@ """Coverage data for Coverage.""" -import os, types +import os import cPickle as pickle class CoverageData: @@ -121,7 +121,7 @@ class CoverageData: data = pickle.load(fdata) finally: fdata.close() - if isinstance(data, types.DictType): + if isinstance(data, dict): # Unpack the 'lines' item. lines = dict([ (f, dict([(l, True) for l in linenos])) |