def _read_rules(self, path):
        blob = utils.read_blob_file_contents(path)
        try:
            rules = json.loads(blob)
        except ValueError as e:
            raise exceptions.CommandError(
                'An error occurred when reading '
                'rules from file %s: %s' % (path, e))
        else:
            return rules
Dump reformatted response to CGI start_response.
dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/identity/v3/mapping.py/_RulesReader._read_rules--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/endpoints/util.py/send_wsgi_response