def clean_acls(self, req):
        if 'swift.clean_acl' in req.environ:
            for header in ('x-container-read', 'x-container-write'):
                if header in req.headers:
                    try:
                        req.headers[header] = \
                            req.environ['swift.clean_acl'](header,
                                                           req.headers[header])
                    except __HOLE__ as err:
                        return HTTPBadRequest(request=req, body=str(err))
        return None
dataset/ETHPy150Open openstack/swift/swift/proxy/controllers/container.py/ContainerController.clean_acls