diff options
author | Jonathan Lange <jml@canonical.com> | 2012-07-08 14:48:46 +0100 |
---|---|---|
committer | Jonathan Lange <jml@canonical.com> | 2012-07-08 14:48:46 +0100 |
commit | 3ec699552b9aefdd2bab63656636ca4ca8cdc282 (patch) | |
tree | bbfa59442cfd98e52d2a2f70cc36baf866e30fa2 /pyflakes/scripts | |
parent | ee58bb55142b514dab62dc201c80056331f64405 (diff) | |
download | pyflakes-3ec699552b9aefdd2bab63656636ca4ca8cdc282.tar.gz |
A swag of integration tests.
Diffstat (limited to 'pyflakes/scripts')
-rw-r--r-- | pyflakes/scripts/pyflakes.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pyflakes/scripts/pyflakes.py b/pyflakes/scripts/pyflakes.py index 3d74052..94d7851 100644 --- a/pyflakes/scripts/pyflakes.py +++ b/pyflakes/scripts/pyflakes.py @@ -69,7 +69,7 @@ class Reporter(object): @param: A L{pyflakes.messages.Message}. """ - self._stdout.write(message) + self._stdout.write(str(message)) self._stdout.write('\n') @@ -175,10 +175,9 @@ def checkRecursive(paths, reporter): def main(): args = sys.argv[1:] - reporter = Reporter(None, sys.stderr) + reporter = Reporter(sys.stdout, sys.stderr) if args: warnings = checkRecursive(args, reporter) else: - warnings = check(sys.stdin.read(), '<stdin>') - + warnings = check(sys.stdin.read(), '<stdin>', reporter) raise SystemExit(warnings > 0) |