(c)
return ESCAPE + bytes((HEX[c//16], HEX[c%16]))
Quote a single character.
Quote a single character.
Quote a single character .
def quote(c):
    """Quote a single character."""
    assert isinstance(c, bytes) and len(c)==1
    c = ord(c)
    return ESCAPE + bytes((HEX[c//16], HEX[c%16]))
def quote ( c ) : assert isinstance ( c , bytes ) and len ( c ) == 1 c = ord ( c ) return ESCAPE + bytes ( ( HEX [ c // 16 ] , HEX [ c % 16 ] ) )