MCPcopy Create free account
hub / github.com/ipython/ipython / fp_cleaner

Method fp_cleaner

IPython/lib/display.py:558–562  ·  view source on GitHub ↗
(fp)

Source from the content-addressed store, hash-verified

556 # Working on a platform where the path separator is "\", so
557 # must convert these to "/" for generating a URI
558 def fp_cleaner(fp):
559 # Replace all occurrences of backslash ("\") with a forward
560 # slash ("/") - this is necessary on windows when a path is
561 # provided as input, but we must link to a URI
562 return fp.replace('\\','/')
563 else:
564 fp_cleaner = None
565

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected