def acls_from_account_info(info):
 acl = parse_acl(version=2, data=info.get('sysmeta', {}).get('core-access-control'))
 if (acl is None):
  return None
 admin_members = acl.get('admin', [])
 readwrite_members = acl.get('read-write', [])
 readonly_members = acl.get('read-only', [])
 if (not any((admin_members, readwrite_members, readonly_members))):
  return None
 return {'admin': admin_members, 'read-write': readwrite_members, 'read-only': readonly_members}

def acls_from_account_info ( info ) : acl = parse_acl ( version = 2 , data = info . get ( 'sysmeta' , { } ) . get ( 'core-access-control' ) ) if ( acl is None ) : return None admin_members = acl . get ( 'admin' , [ ] ) readwrite_members = acl . get ( 'read-write' , [ ] ) readonly_members = acl . get ( 'read-only' , [ ] ) if ( not any ( ( admin_members , readwrite_members , readonly_members ) ) ) : return None return { 'admin' : admin_members , 'read-write' : readwrite_members , 'read-only' : readonly_members }
extract the account acls from the given account_info .