Code review comment for lp:~andrew-monkeysailor/python-snippets/ast-snippets

Revision history for this message
Jono Bacon (jonobacon) wrote :

Thanks for the re-submission. Now I am getting:

Traceback (most recent call last):
  File "/usr/share/python-snippets/AST/ASTcount.py", line 33, in <module>
    counter = ASTcount(x)
  File "/usr/share/python-snippets/AST/ASTcount.py", line 13, in __init__
    self.source = ast.parse(txt)
  File "/usr/lib/python2.6/ast.py", line 37, in parse
    return compile(expr, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7

    ^
SyntaxError: invalid syntax

« Back to merge proposal