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

def ParseFlags ( resp ) : mo = FLAGS_cre . match ( resp ) if ( not mo ) : return ( ) return tuple ( mo . group ( 'flags' ) . split ( ) )
convert imap4 flags response to python tuple .