samir-araujo / apache-scalp

Automatically exported from code.google.com/p/apache-scalp
0 stars 0 forks source link

SyntaxError: invalid syntax #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.run bellow
[xxxx@Keroro /]$ ./scalp-0.4.py --help
  File "./scalp-0.4.py", line 318
    total_nb_lines = sum(1 for line in open(access))
                             ^
SyntaxError: invalid syntax

Original issue reported on code.google.com by kok...@gmail.com on 18 Dec 2009 at 4:29

GoogleCodeExporter commented 9 years ago
Change that line to read:

    total_nb_lines = sum([1 for line in open(access)])

and then it works.

Original comment by timbla...@gmail.com on 22 Oct 2011 at 3:04