~cprov/pyflakes/test-packaging

Viewing all changes in revision 28.

  • Committer: exarkun
  • Date: 2009-05-21 18:07:41 UTC
  • Revision ID: vcs-imports@canonical.com-20090521180741-p7o3gduz0qeze2kt
Merge pyflakes-syntaxerrors-2885

Author: exarkun
Reviewer: jonathanj
Fixes: #2885

Use the builtin compile function to check for syntax errors before trying to
construct an ast with the compiler package.  The compiler package is less well
able to report such errors (in particular, on Python 2.4 and older, it entirely
misses some syntax errors).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: