summaryrefslogtreecommitdiff
path: root/swiftclient/shell.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-02-03 18:55:47 +0000
committerGerrit Code Review <review@openstack.org>2015-02-03 18:55:47 +0000
commiteb28d8aff6d6b6e985e76643bee7dbf729055c82 (patch)
treee8d2a07545e676cb5d916dfe0b217084fe57139b /swiftclient/shell.py
parent21473f1bc475fa69aa9d1cdd6b60cc827c4f7f1b (diff)
parentbd42c2b00d0e4a18d15fd494bd9b9101742c4a37 (diff)
downloadpython-swiftclient-eb28d8aff6d6b6e985e76643bee7dbf729055c82.tar.gz
Merge "This patch fixes downloading files to stdout."
Diffstat (limited to 'swiftclient/shell.py')
-rwxr-xr-xswiftclient/shell.py7
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: