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

Function encode_text_stream

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

Source from the content-addressed store, hash-verified

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
227else:
228 # For python2.7, pass read strings as-is, but also allow writing unicode
229 def decode_text_stream(s):

Callers 6

p4_write_pipeFunction · 0.85
p4CmdListFunction · 0.85
applyCommitMethod · 0.85
writeToGitStreamMethod · 0.85
streamOneP4DeletionMethod · 0.85
streamP4FilesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected