<s> from agamotto . utils import execute <EOL> def exists ( groupname ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> return int ( execute ( "<STR_LIT>" % ( groupname ) ) ) > <NUM_LIT:0> <EOL> except : <EOL> return False <EOL> def gid ( groupname ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> return execute ( "<STR_LIT>" % ( groupname ) ) . split ( '<STR_LIT::>' ) [ <NUM_LIT:2> ] <EOL> except : <EOL> return None <EOL> def members ( groupname ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> members = execute ( '<STR_LIT>' % <EOL> groupname ) . split ( '<STR_LIT::>' ) [ <NUM_LIT:3> ] . strip ( ) . split ( '<STR_LIT:U+002C>' ) <EOL> if members == [ '<STR_LIT>' ] : <EOL> return [ ] <EOL> else : <EOL> return members <EOL> except : <EOL> return [ ] </s>
