diff options
author | Daniel Cowgill <dcowgill@gmail.com> | 2013-09-16 11:12:42 -0400 |
---|---|---|
committer | Daniel Cowgill <dcowgill@gmail.com> | 2013-09-16 11:12:42 -0400 |
commit | 2e19652d00291086f14325c91bbc31cfcdb66b5e (patch) | |
tree | a767b499e758503374972ec4abfeb72f48a7b49c /scripts | |
parent | 918eb148186fb498527996f8658581121e805865 (diff) | |
download | isort-2e19652d00291086f14325c91bbc31cfcdb66b5e.tar.gz |
Removed extra newline when writing to stdout
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/isort | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/isort b/scripts/isort index 8a1eb1be..5ddabf23 100755 --- a/scripts/isort +++ b/scripts/isort @@ -36,7 +36,7 @@ file_names = arguments.pop('files', []) if file_names == ['-']: import sys sorted_file = SortImports(file_contents=sys.stdin.read(), **arguments) - print(sorted_file.output) + sys.stdout.write(sorted_file.output) else: for file_name in file_names: |