Commit b92b4a8f authored by Jeremy Hylton's avatar Jeremy Hylton

Update parse_line() to always return 2-tuple on error, not 3-tuple.

parent 084cf076
......@@ -29,10 +29,10 @@ def parse_line(line):
"""Parse a log entry and return time, method info, and client."""
t = parse_time(line)
if t is None:
return None, None, None
return None, None
mo = rx_meth.search(line)
if mo is None:
return None, None, None
return None, None
meth_name = mo.group(1)
meth_args = mo.group(2).strip()
if meth_args.endswith(')'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment