MCPcopy
hub / github.com/aws/aws-cli / write

Method write

awscli/table.py:149–156  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

147 self._right_indent_char = right_indent_char
148
149 def write(self, text):
150 self._stream.write(self._left_indent_char * self._indent_level)
151 if text.endswith('\n'):
152 self._stream.write(text[:-1])
153 self._stream.write(self._right_indent_char * self._indent_level)
154 self._stream.write('\n')
155 else:
156 self._stream.write(text)
157
158 def __getattr__(self, attr):
159 return getattr(self._stream, attr)

Callers 15

_rewrite_shebangFunction · 0.45
_create_record_fileFunction · 0.45
write_fileMethod · 0.45
runFunction · 0.45
begin_iterationMethod · 0.45
_format_textFunction · 0.45
_format_scalar_listFunction · 0.45
_format_dictFunction · 0.45
write_errorFunction · 0.45
format_errorMethod · 0.45
_do_handle_exceptionMethod · 0.45

Calls

no outgoing calls

Tested by 4

begin_iterationMethod · 0.36
create_fileMethod · 0.36
create_file_with_sizeMethod · 0.36
append_fileMethod · 0.36