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'))
| 68 | |
| 69 | |
| 70 | def 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 | |
| 84 | def compress_user(path): |
nothing calls this directly
no outgoing calls
no test coverage detected