Skip to content
Snippets Groups Projects
Commit 9ad908a3 authored by nimrod's avatar nimrod
Browse files

Fix code example.

parent 6c0bfbac
Branches master
No related tags found
No related merge requests found
Pipeline #4195 passed
......@@ -36,7 +36,7 @@ bit).
parser = compile(
'''{ip} {logname} {user} [{date:th}] "{request}" {status:d} {bytes} "{referer}" "{user_agent}"'''
)
for line in fh.readlines():
for line in fh:
result = parser.parse(line)
if result is not None:
yield result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment