MCPcopy Create free account
hub / github.com/ezyang/ghstack / decode

Method decode

src/ghstack/shell.py:203–208  ·  view source on GitHub ↗
(b: bytes)

Source from the content-addressed store, hash-verified

201 returncode, out, err = loop.run_until_complete(run())
202
203 def decode(b: bytes) -> str:
204 return (
205 b.decode(errors="backslashreplace")
206 .replace("\0", "\\0")
207 .replace("\r\n", "\n")
208 )
209
210 # NB: Not debug; we always want to show this to user.
211 if err:

Callers 5

check_mypy_installedFunction · 0.80
check_fileFunction · 0.80
process_streamMethod · 0.80
shMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected