On Tue, Jan 10, 2012 at 10:59 AM, Harsh Prateek Bora
<ha...@linux.vnet.ibm.com> wrote:
> +# Generator that yields Event objects given a trace-events file object
> +def read_events(fobj):
> +    event_num = 0
> +    for line in fobj:
> +        if not line.strip():
> +            continue
> +        if line.lstrip().startswith('#'):
> +           continue
> +       yield Event(event_num, line)
> +       event_num += 1

Please use 4 space indentation.  There is also a use of tab on the
converters['simple']['c'] = simple_c line earlier on.

Reply via email to