MCPcopy Index your code
hub / github.com/git/git / decode_text_stream

Function decode_text_stream

git-p4.py:222–223  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

220if bytes is not str:
221 # For python3, always encode and decode as appropriate
222 def decode_text_stream(s):
223 return s.decode() if isinstance(s, bytes) else s
224
225 def encode_text_stream(s):
226 return s.encode() if isinstance(s, str) else s

Callers 9

read_pipe_fullFunction · 0.85
read_pipeFunction · 0.85
read_pipe_textFunction · 0.85
read_pipe_linesFunction · 0.85
p4_has_move_commandFunction · 0.85
branch_existsFunction · 0.85
generatePointerMethod · 0.85
applyCommitMethod · 0.85
streamOneP4FileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected