Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
Backslash-quote 'text'.
If 'chars' is given, only characters in 'chars' are quoted.

        def backslash_quote(text, chars=''):
    """Backslash-quote 'text'.
    If 'chars' is given, only characters in 'chars' are quoted.
    """
    for c in (chars or completer.filename_quote_characters):
        text = text.replace(c, QUOTED[c])
    return text
        


src/g/p/gpgkeys-HEAD/gpgkeys/tests/test_quoting.py   gpgkeys(Download)
 
from kmd.completions.quoting import backslash_dequote
from kmd.completions.quoting import backslash_quote
from kmd.completions.quoting import is_fully_quoted
from kmd.completions.quoting import char_is_quoted

src/k/m/kmd-2.2/kmd/tests/test_quoting.py   kmd(Download)
 
from kmd.completions.quoting import backslash_dequote
from kmd.completions.quoting import backslash_quote
from kmd.completions.quoting import is_fully_quoted
from kmd.completions.quoting import char_is_quoted

src/g/p/gpgkeys-1.23/gpgkeys/tests/test_quoting.py   gpgkeys(Download)
 
from kmd.completions.quoting import backslash_dequote
from kmd.completions.quoting import backslash_quote
from kmd.completions.quoting import is_fully_quoted
from kmd.completions.quoting import char_is_quoted