MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / __str__

Method __str__

scenedetect/_thirdparty/simpletable.py:279–295  ·  view source on GitHub ↗

Return the HTML page as a string.

(self)

Source from the content-addressed store, hash-verified

277 self.encoding = encoding
278
279 def __str__(self):
280 """Return the HTML page as a string."""
281 page = []
282
283 if self.css:
284 page.append('<style type="text/css">\n%s\n</style>' % self.css)
285
286 # Set encoding
287 page.append(
288 '<meta http-equiv="Content-Type" content="text/html;charset=%s">' % self.encoding
289 )
290
291 for table in self.tables:
292 page.append(str(table))
293 page.append("<br />")
294
295 return "\n".join(page)
296
297 def __iter__(self):
298 """Iterate through tables"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected