Commit b7a6c6cc authored by Stefan Behnel's avatar Stefan Behnel

fix incorrect attribute name

parent 482fb3b5
...@@ -204,8 +204,8 @@ class CythonModuleReporter(FileReporter): ...@@ -204,8 +204,8 @@ class CythonModuleReporter(FileReporter):
yield code_line yield code_line
def source(self): def source(self):
if os.path.exists(self.source_file): if os.path.exists(self.filename):
with open(self.source_file) as f: with open(self.filename) as f:
return f.read() return f.read()
else: else:
return '\n'.join(self._iter_source_lines()) return '\n'.join(self._iter_source_lines())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment