MCPcopy Create free account
hub / github.com/csev/py4e / __str__

Method __str__

code/BeautifulSoup.py:465–469  ·  view source on GitHub ↗
(self, encoding=DEFAULT_OUTPUT_ENCODING)

Source from the content-addressed store, hash-verified

463
464class ProcessingInstruction(NavigableString):
465 def __str__(self, encoding=DEFAULT_OUTPUT_ENCODING):
466 output = self
467 if "%SOUP-ENCODING%" in output:
468 output = self.substituteEncoding(output, encoding)
469 return "<?%s?>" % self.toEncoding(output, encoding)
470
471class Comment(NavigableString):
472 def __str__(self, encoding=DEFAULT_OUTPUT_ENCODING):

Callers

nothing calls this directly

Calls 2

substituteEncodingMethod · 0.45
toEncodingMethod · 0.45

Tested by

no test coverage detected