Commit b7a6c6cc authored by Stefan Behnel's avatar Stefan Behnel

fix incorrect attribute name

parent 482fb3b5
......@@ -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())
......
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