(data)
return bool(data.startswith(tob('!')) and tob('?') in data)
Return True if the argument looks like a encoded cookie.
Return True if the argument looks like a encoded cookie.
Return True if the argument looks like a encoded cookie .
def cookie_is_encoded(data):
    ''' Return True if the argument looks like a encoded cookie.'''
    return bool(data.startswith(tob('!')) and tob('?') in data)
def cookie_is_encoded ( data ) : return bool ( data . startswith ( tob ( '!' ) ) and tob ( '?' ) in data )