MCPcopy Create free account
hub / github.com/dropbox/pyannotate / encode

Function encode

pyannotate_tools/annotations/parse.py:336–341  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

334
335
336def encode(s):
337 # type: (Text) -> str
338 if PY2:
339 return s.encode('ascii')
340 else:
341 return s

Callers 1

parse_jsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected