diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-21 22:24:50 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-21 22:24:50 -0500 |
commit | b376435de2f3a94fcbc2a36b9537265c46b86139 (patch) | |
tree | 64b797a0e4b62321ba5f6683245e544a5a13a844 /coverage/python.py | |
parent | 4ce67933b19cd067046a55a8100f3a56881858ce (diff) | |
download | python-coveragepy-b376435de2f3a94fcbc2a36b9537265c46b86139.tar.gz |
Rename CodeUnit to FileReporter
Diffstat (limited to 'coverage/python.py')
-rw-r--r-- | coverage/python.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/coverage/python.py b/coverage/python.py index 7a9b842..19212a5 100644 --- a/coverage/python.py +++ b/coverage/python.py @@ -87,7 +87,7 @@ def get_zip_bytes(filename): return None -class PythonCodeUnit(FileReporter): +class PythonFileReporter(FileReporter): """Report support for a Python file.""" def __init__(self, morf, coverage=None): @@ -105,7 +105,9 @@ class PythonCodeUnit(FileReporter): elif filename.endswith('$py.class'): # Jython filename = filename[:-9] + ".py" - super(PythonCodeUnit, self).__init__(file_locator.canonical_filename(filename)) + super(PythonFileReporter, self).__init__( + file_locator.canonical_filename(filename) + ) if hasattr(morf, '__name__'): name = morf.__name__ |