1 --- pyflakes-0.2.1/bin/pyflakes.orig 2005-10-07 16:58:28.000000000 +0200
2 +++ pyflakes-0.2.1/bin/pyflakes 2005-11-18 16:23:52.000000000 +0100
4 tree = compiler.parse(codeString)
5 except (SyntaxError, IndentationError):
6 value = sys.exc_info()[1]
7 - (lineno, offset, line) = value[1][1:]
9 + (lineno, offset, line) = value[1][1:]
11 + print >> sys.stderr, 'could not compile %r' % (filename,)
13 if line.endswith("\n"):
15 print >> sys.stderr, 'could not compile %r:%d:' % (filename, lineno)
19 def checkPath(filename):
20 - return check(file(filename).read(), filename)
21 + if os.path.exists(filename):
22 + return check(file(filename).read(), filename)