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

Method write_html

tools/c_coverage/c_coverage_report.py:102–115  ·  view source on GitHub ↗
(self, root)

Source from the content-addressed store, hash-verified

100 fd.close()
101
102 def write_html(self, root):
103 for path, source in self.files.items():
104 fd = open(os.path.join(root, self.clean_path(path) + ".html"), "w")
105 source.write_html(fd)
106 fd.close()
107
108 fd = open(os.path.join(root, 'index.html'), 'w')
109 fd.write("<html>")
110 paths = sorted(self.files.keys())
111 for path in paths:
112 fd.write('<p><a href="%s.html">%s</a></p>' %
113 (self.clean_path(path), escape(path[len(self.prefix):])))
114 fd.write("</html>")
115 fd.close()
116
117
118def collect_stats(files, fd, pattern):

Callers

nothing calls this directly

Calls 7

clean_pathMethod · 0.95
openFunction · 0.85
keysMethod · 0.80
joinMethod · 0.45
write_htmlMethod · 0.45
closeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected