MCPcopy Index your code
hub / github.com/archlinux/archinstall / decode

Method decode

archinstall/lib/command.py:301–309  ·  view source on GitHub ↗
(self, encoding: str = 'utf-8', errors: str = 'backslashreplace', strip: bool = True)

Source from the content-addressed store, hash-verified

299 return True
300
301 def decode(self, encoding: str = 'utf-8', errors: str = 'backslashreplace', strip: bool = True) -> str:
302 if not self.session:
303 raise ValueError('No session available to decode')
304
305 val = self.session._trace_log.decode(encoding, errors=errors)
306
307 if strip:
308 return val.strip()
309 return val
310
311 def output(self, remove_cr: bool = True) -> bytes:
312 if not self.session:

Callers 15

__repr__Method · 0.95
lvm_import_vgFunction · 0.95
_share_log_commandFunction · 0.45
share_install_logFunction · 0.45
fetch_data_from_urlFunction · 0.45
_verify_service_stopMethod · 0.45
add_swapfileMethod · 0.45
mkinitcpioMethod · 0.45
_service_startedMethod · 0.45
_service_stateMethod · 0.45
__str__Method · 0.45
peakMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected