Filename Quoting

Filename quoting and dequoting support.

kmd.completions.filename.dequote_filename(text, quote_char='')

Return a backslash-dequoted version of ‘text’. If ‘quote_char’ is the single-quote, backslash-dequoting is limited to single-quotes.

kmd.completions.filename.quote_filename(text, single_match=True, quote_char='')

Return a quote-char quoted version of ‘text’. If ‘single_match’ is False, the quotes are not closed. The default ‘quote_char’ is the first character in rl.completer.quote_characters.

kmd.completions.filename.backslash_quote_filename(text, single_match=True, quote_char='')

Return a backslash-quoted version of ‘text’. If a ‘quote_char’ is given, behave like quote_filename().

Previous topic

String Quoting

Next topic

Constants