def format_acl_v1(groups=None, referrers=None, header_name=None):
 (groups, referrers) = ((groups or []), (referrers or []))
 referrers = [('.r:%s' % r) for r in referrers]
 result = ','.join((groups + referrers))
 return (clean_acl(header_name, result) if header_name else result)

def format_acl_v1 ( groups = None , referrers = None , header_name = None ) : ( groups , referrers ) = ( ( groups or [ ] ) , ( referrers or [ ] ) ) referrers = [ ( '.r:%s' % r ) for r in referrers ] result = ',' . join ( ( groups + referrers ) ) return ( clean_acl ( header_name , result ) if header_name else result )
returns a standard swift acl string for the given inputs .