def format_acl(version=1, **kwargs):
 if (version == 1):
  return format_acl_v1(groups=kwargs.get('groups'), referrers=kwargs.get('referrers'), header_name=kwargs.get('header_name'))
 elif (version == 2):
  return format_acl_v2(kwargs.get('acl_dict'))
 raise ValueError(('Invalid ACL version: %r' % version))

def format_acl ( version = 1 , ** kwargs ) : if ( version == 1 ) : return format_acl_v1 ( groups = kwargs . get ( 'groups' ) , referrers = kwargs . get ( 'referrers' ) , header_name = kwargs . get ( 'header_name' ) ) elif ( version == 2 ) : return format_acl_v2 ( kwargs . get ( 'acl_dict' ) ) raise ValueError ( ( 'Invalid ACL version: %r' % version ) )
compatibility wrapper to help migrate acl syntax from version 1 to 2 .