Commit ef8674b3 authored by Matthias BUSSONNIER's avatar Matthias BUSSONNIER

clearup unused arguments and close P tags

parent 053fd91b
...@@ -65,7 +65,7 @@ class AnnotationCCodeWriter(CCodeWriter): ...@@ -65,7 +65,7 @@ class AnnotationCCodeWriter(CCodeWriter):
with codecs.open(html_filename, "w", encoding="UTF-8") as out_buffer: with codecs.open(html_filename, "w", encoding="UTF-8") as out_buffer:
out_buffer.write(self._save_annotation(lines, code_source_file , target_filename, c_file)) out_buffer.write(self._save_annotation(lines, code_source_file , target_filename, c_file))
def _save_annotation(self, lines, code_source_file , target_filename, c_file): def _save_annotation(self, lines, code_source_file , c_file=None):
""" """
lines : original cython source code split by lines lines : original cython source code split by lines
code_source_file : generated c code keyed by line number in original file code_source_file : generated c code keyed by line number in original file
...@@ -122,8 +122,8 @@ function toggleDiv(id) { ...@@ -122,8 +122,8 @@ function toggleDiv(id) {
</head> </head>
""") """)
outlist.append(u'<body>\n') outlist.append(u'<body>\n')
outlist.append(u'<p>Generated by Cython %s\n' % Version.watermark) outlist.append(u'<p>Generated by Cython %s</p>\n' % Version.watermark)
outlist.append(u'<p>Raw output: <a href="%s">%s</a>\n' % (c_file, c_file)) outlist.append(u'<p>Raw output: <a href="%s">%s</a></p>\n' % (c_file, c_file))
zero_calls = dict((name, 0) for name in zero_calls = dict((name, 0) for name in
'refnanny py_macro_api py_c_api pyx_macro_api pyx_c_api error_goto'.split()) 'refnanny py_macro_api py_c_api pyx_macro_api pyx_c_api error_goto'.split())
......
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