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

Function unquote_filename

IPython/utils/path.py:70–81  ·  view source on GitHub ↗

On Windows, remove leading and trailing quotes from filenames. This function has been deprecated and should not be used any more: unquoting is now taken care of by :func:`IPython.utils.process.arg_split`.

(name, win32=(sys.platform=='win32'))

Source from the content-addressed store, hash-verified

68
69
70def unquote_filename(name, win32=(sys.platform=='win32')):
71 """ On Windows, remove leading and trailing quotes from filenames.
72
73 This function has been deprecated and should not be used any more:
74 unquoting is now taken care of by :func:`IPython.utils.process.arg_split`.
75 """
76 warn("'unquote_filename' is deprecated since IPython 5.0 and should not "
77 "be used anymore", DeprecationWarning, stacklevel=2)
78 if win32:
79 if name.startswith(("'", '"')) and name.endswith(("'", '"')):
80 name = name[1:-1]
81 return name
82
83
84def compress_user(path):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected