sys.exit needs an int, len(list(lines)) > 0 returns a boolean..


On 25 June 2013 17:25, Douglas Stockwell <notifications@github.com> wrote:

> In test/update-testcases.py:
>
> > @@ -54,7 +54,8 @@ def is_testcase_file(filename):
> >      for line in lines:
> >          sys.stdout.write(line)
> >
> > -    sys.exit(not lines)
> > +    sys.exit(int(len(list(lines)) > 0))
>
> No need to call int() then?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/web-animations/web-animations-js/pull/297/files#r4860468>
> .
>