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

Method setCharacterStream

Lib/xml/sax/xmlreader.py:260–268  ·  view source on GitHub ↗

Set the character stream for this input source. (The stream must be a Python 2.0 Unicode-wrapped file-like that performs conversion to Unicode strings.) If there is a character stream specified, the SAX parser will ignore any byte stream and will not attempt to open

(self, charfile)

Source from the content-addressed store, hash-verified

258 return self.__bytefile
259
260 def setCharacterStream(self, charfile):
261 """Set the character stream for this input source. (The stream
262 must be a Python 2.0 Unicode-wrapped file-like that performs
263 conversion to Unicode strings.)
264
265 If there is a character stream specified, the SAX parser will
266 ignore any byte stream and will not attempt to open a URI
267 connection to the system identifier."""
268 self.__charfile = charfile
269
270 def getCharacterStream(self):
271 "Get the character stream for this input source."

Callers 6

test_character_streamMethod · 0.95
test_handlersMethod · 0.95
test_handlersMethod · 0.95
parseStringFunction · 0.95
prepare_input_sourceFunction · 0.95

Calls

no outgoing calls

Tested by 4

test_character_streamMethod · 0.76
test_handlersMethod · 0.76
test_handlersMethod · 0.76