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

Method getByteStream

Lib/xml/sax/xmlreader.py:253–258  ·  view source on GitHub ↗

Get the byte stream for this input source. The getEncoding method will return the character encoding for this byte stream, or None if unknown.

(self)

Source from the content-addressed store, hash-verified

251 self.__bytefile = bytefile
252
253 def getByteStream(self):
254 """Get the byte stream for this input source.
255
256 The getEncoding method will return the character encoding for
257 this byte stream, or None if unknown."""
258 return self.__bytefile
259
260 def setCharacterStream(self, charfile):
261 """Set the character stream for this input source. (The stream

Callers 10

prepare_input_sourceFunction · 0.95
test_character_streamMethod · 0.80
test_byte_streamMethod · 0.80
test_system_idMethod · 0.80
test_stringMethod · 0.80
test_path_objectsMethod · 0.80
test_binary_fileMethod · 0.80
test_text_fileMethod · 0.80
parseMethod · 0.80
_close_sourceMethod · 0.80

Calls

no outgoing calls

Tested by 7

test_character_streamMethod · 0.64
test_byte_streamMethod · 0.64
test_system_idMethod · 0.64
test_stringMethod · 0.64
test_path_objectsMethod · 0.64
test_binary_fileMethod · 0.64
test_text_fileMethod · 0.64