diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-02-03 18:55:47 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-02-03 18:55:47 +0000 |
commit | eb28d8aff6d6b6e985e76643bee7dbf729055c82 (patch) | |
tree | e8d2a07545e676cb5d916dfe0b217084fe57139b /swiftclient/shell.py | |
parent | 21473f1bc475fa69aa9d1cdd6b60cc827c4f7f1b (diff) | |
parent | bd42c2b00d0e4a18d15fd494bd9b9101742c4a37 (diff) | |
download | python-swiftclient-eb28d8aff6d6b6e985e76643bee7dbf729055c82.tar.gz |
Merge "This patch fixes downloading files to stdout."
Diffstat (limited to 'swiftclient/shell.py')
-rwxr-xr-x | swiftclient/shell.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/swiftclient/shell.py b/swiftclient/shell.py index 6b3ee3f..ce779b3 100755 --- a/swiftclient/shell.py +++ b/swiftclient/shell.py @@ -16,9 +16,9 @@ from __future__ import print_function +import logging import signal import socket -import logging from optparse import OptionParser, OptionGroup, SUPPRESS_HELP from os import environ, walk, _exit as os_exit @@ -261,8 +261,9 @@ def st_download(parser, args, output_manager): for down in down_iter: if options.out_file == '-' and 'contents' in down: - for chunk in down['contents']: - output_manager.print_msg(chunk) + contents = down['contents'] + for chunk in contents: + output_manager.print_raw(chunk) else: if down['success']: if options.verbose: |