(resp)
return tuple(mo.group('flags').split())
Convert IMAP4 flags response to python tuple.
Convert IMAP4 flags response to python tuple.
Convert IMAP4 flags response to python tuple .
def ParseFlags(resp):

    """Convert IMAP4 flags response to python tuple."""

    mo = Flags.match(resp)
    if not mo:
        return ()

    return tuple(mo.group('flags').split())
def ParseFlags ( resp ) : mo = Flags . match ( resp ) if not mo : return ( ) return tuple ( mo . group ( 'flags' ) . split ( ) )