MCPcopy
hub / github.com/USArmyResearchLab/Dshell / write

Method write

dshell/output/output.py:222–232  ·  view source on GitHub ↗

Primary output function. Should be overwritten by subclasses.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

220 return output
221
222 def write(self, *args, **kwargs):
223 """
224 Primary output function. Should be overwritten by subclasses.
225 """
226 line = self.convert(*args, **kwargs)
227 try:
228 self.fh.write(line)
229 if self.nobuffer:
230 self.fh.flush()
231 except BrokenPipeError:
232 pass
233
234 def alert(self, *args, **kwargs):
235 """

Callers 15

alertMethod · 0.95
dumpMethod · 0.95
setupMethod · 0.45
packet_handlerMethod · 0.45
http_handlerMethod · 0.45
handleresponseMethod · 0.45
http_handlerMethod · 0.45
http_handlerMethod · 0.45
http_handlerMethod · 0.45
packet_handlerMethod · 0.45
packet_handlerMethod · 0.45
blob_handlerMethod · 0.45

Calls 2

convertMethod · 0.95
flushMethod · 0.45

Tested by

no test coverage detected