diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-02-20 20:49:28 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-02-20 20:49:28 +0100 |
commit | b7a6c6cc8950c56affba4119202bc4682bf42c13 (patch) | |
tree | 1e5aa7a132ad9d148daa2c7271e2407c79f21912 /Cython/Coverage.py | |
parent | 482fb3b5ff53e210dd29682d17dddeee8f369d57 (diff) | |
download | cython-b7a6c6cc8950c56affba4119202bc4682bf42c13.tar.gz |
fix incorrect attribute name
Diffstat (limited to 'Cython/Coverage.py')
-rw-r--r-- | Cython/Coverage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Coverage.py b/Cython/Coverage.py index 38365db8e..e079606b4 100644 --- a/Cython/Coverage.py +++ b/Cython/Coverage.py @@ -204,8 +204,8 @@ class CythonModuleReporter(FileReporter): yield code_line def source(self): - if os.path.exists(self.source_file): - with open(self.source_file) as f: + if os.path.exists(self.filename): + with open(self.filename) as f: return f.read() else: return '\n'.join(self._iter_source_lines()) |