

def _get_account_prefix(self, account):
    'Get the prefix of an account'
    for prefix in [pre for pre in self.reseller_prefixes if (pre != '')]:
        if account.startswith(prefix):
            return prefix
    if ('' in self.reseller_prefixes):
        return ''
    return None

dataset/ETHPy150Open openstack/swift/swift/common/middleware/keystoneauth.py KeystoneAuth._get_account_prefix/original