MCPcopy Index your code
hub / github.com/python/cpython / characters

Method characters

Lib/xml/sax/saxutils.py:208–213  ·  view source on GitHub ↗
(self, content)

Source from the content-addressed store, hash-verified

206 self._write('</%s>' % self._qname(name))
207
208 def characters(self, content):
209 if content:
210 self._finish_pending_start_element()
211 if not isinstance(content, str):
212 content = str(content, self._encoding)
213 self._write(escape(content))
214
215 def ignorableWhitespace(self, content):
216 if content:

Callers 10

test_xmlgen_contentMethod · 0.95
test_xmlgen_encodingMethod · 0.95
test_5027_2Method · 0.95
test_xmlgen_fragmentMethod · 0.95
character_dataMethod · 0.45
charactersMethod · 0.45

Calls 4

strFunction · 0.85
escapeFunction · 0.70
_writeMethod · 0.45

Tested by 8

test_xmlgen_contentMethod · 0.76
test_xmlgen_encodingMethod · 0.76
test_5027_2Method · 0.76
test_xmlgen_fragmentMethod · 0.76