(value)
return quoted_string, value
quoted-string = [CFWS] <bare-quoted-string> [CFWS]

    'bare-quoted-string' is an intermediate class defined by this
    parser and not by the RFC grammar.  It is the quoted string
    without any attached CFWS.
quoted-string = [CFWS] <bare-quoted-string> [CFWS]
quoted - string = [ CFWS ] <bare - quoted - string > [ CFWS ]
def get_quoted_string(value):
    """quoted-string = [CFWS] <bare-quoted-string> [CFWS]

    'bare-quoted-string' is an intermediate class defined by this
    parser and not by the RFC grammar.  It is the quoted string
    without any attached CFWS.
    """
    quoted_string = QuotedString()
    if value and value[0] in CFWS_LEADER:
        token, value = get_cfws(value)
        quoted_string.append(token)
    token, value = get_bare_quoted_string(value)
    quoted_string.append(token)
    if value and value[0] in CFWS_LEADER:
        token, value = get_cfws(value)
        quoted_string.append(token)
    return quoted_string, value
def get_quoted_string ( value ) : quoted_string = QuotedString ( ) if value and value [ 0 ] in CFWS_LEADER : token , value = get_cfws ( value ) quoted_string . append ( token ) token , value = get_bare_quoted_string ( value ) quoted_string . append ( token ) if value and value [ 0 ] in CFWS_LEADER : token , value = get_cfws ( value ) quoted_string . append ( token ) return quoted_string , value