MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / _escape

Function _escape

tests/cloudpickle_test.py:77–79  ·  view source on GitHub ↗
(raw_filepath)

Source from the content-addressed store, hash-verified

75
76
77def _escape(raw_filepath):
78 # Ugly hack to embed filepaths in code templates for windows
79 return raw_filepath.replace("\\", r"\\\\")
80
81
82def _maybe_remove(list_, item):

Calls

no outgoing calls

Tested by

no test coverage detected