MCPcopy Create free account
hub / github.com/numpy/numpy / write_html

Method write_html

tools/c_coverage/c_coverage_report.py:66–75  ·  view source on GitHub ↗
(self, fd)

Source from the content-addressed store, hash-verified

64 source.close()
65
66 def write_html(self, fd):
67 source = open(self.path, 'r')
68 code = source.read()
69 lexer = CLexer()
70 formatter = FunctionHtmlFormatter(
71 self.lines,
72 full=True,
73 linenos='inline')
74 fd.write(highlight(code, lexer, formatter))
75 source.close()
76
77
78class SourceFiles:

Callers 2

write_htmlMethod · 0.45

Calls 5

openFunction · 0.85
readMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected