Return a quoted (shell-escaped) version of the value which can be used as one token in a shell command line. :param value: Value to quote. :type value: ``str`` :rtype: ``str``
(value)
| 136 | |
| 137 | |
| 138 | def quote_unix(value): |
| 139 | """ |
| 140 | Return a quoted (shell-escaped) version of the value which can be used as one token in a shell |
| 141 | command line. |
| 142 | |
| 143 | :param value: Value to quote. |
| 144 | :type value: ``str`` |
| 145 | |
| 146 | :rtype: ``str`` |
| 147 | """ |
| 148 | value = six.moves.shlex_quote(value) |
| 149 | return value |
| 150 | |
| 151 | |
| 152 | def quote_windows(value): |
no outgoing calls