MCPcopy Index your code
hub / github.com/cool-RR/PySnooper / _py2_fsencode

Function _py2_fsencode

tests/mini_toolbox/pathlib.py:61–65  ·  view source on GitHub ↗
(parts)

Source from the content-addressed store, hash-verified

59
60
61def _py2_fsencode(parts):
62 # py2 => minimal unicode support
63 assert pycompat.PY2
64 return [part.encode('ascii') if isinstance(part, pycompat.text_type)
65 else part for part in parts]
66
67
68def _try_except_fileexistserror(try_func, except_func, else_func=None):

Callers 1

parse_partsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected