MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / getvalue

Method getvalue

cmd2/utils.py:434–436  ·  view source on GitHub ↗

Get the internal contents as a str.

(self)

Source from the content-addressed store, hash-verified

432 self.inner_stream.write(s)
433
434 def getvalue(self) -> str:
435 """Get the internal contents as a str."""
436 return self.buffer.byte_buf.decode(encoding=self.encoding, errors=self.errors)
437
438 def getbytes(self) -> bytes:
439 """Get the internal contents as bytes."""

Callers 15

__call__Method · 0.95
readMethod · 0.95
run_cmdFunction · 0.95
test_ctrl_c_at_promptFunction · 0.80
test_ctrl_d_at_promptFunction · 0.80
test_select_ctrl_cFunction · 0.80
test_custom_stdoutFunction · 0.80

Calls

no outgoing calls

Tested by 15

run_cmdFunction · 0.76
test_ctrl_c_at_promptFunction · 0.64
test_ctrl_d_at_promptFunction · 0.64
test_select_ctrl_cFunction · 0.64
test_custom_stdoutFunction · 0.64
test_poutput_stringFunction · 0.64
test_poutput_zeroFunction · 0.64