MCPcopy Create free account
hub / github.com/clips/pattern / _toStringSubclass

Method _toStringSubclass

pattern/web/soup/BeautifulSoup.py:1376–1381  ·  view source on GitHub ↗

Adds a certain piece of text to the tree as a NavigableString subclass.

(self, text, subclass)

Source from the content-addressed store, hash-verified

1374 self.currentData.append(data)
1375
1376 def _toStringSubclass(self, text, subclass):
1377 """Adds a certain piece of text to the tree as a NavigableString
1378 subclass."""
1379 self.endData()
1380 self.handle_data(text)
1381 self.endData(subclass)
1382
1383 def handle_pi(self, text):
1384 """Handle a processing instruction as a ProcessingInstruction

Callers 4

handle_piMethod · 0.95
handle_commentMethod · 0.95
handle_declMethod · 0.95
parse_declarationMethod · 0.95

Calls 2

endDataMethod · 0.95
handle_dataMethod · 0.95

Tested by

no test coverage detected