def __iter__(self):
        for line in self.fp:
            m = log_re.match(line.strip())
            d = m.groupdict()
            d['remote_addr'] = d['remote_addr'].replace('"', '')
            try:
                request = d.pop('request')
                method, path, httpver = request.split(' ')
            except ValueError:
                method, path, httpver = None, None, None
            try:
                d['bytes'] = int(d['bytes'])
            except __HOLE__:
                d['bytes'] = 0
            d['status'] = int(d['status'])
            yield d
dataset/ETHPy150Open samuel/squawk/squawk/parsers/access_log.py/AccessLogParser.__iter__