diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-30 12:47:40 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-30 12:56:43 -0700 |
commit | 1d0c97fdb307f1e92f2b632cf3512d96b10f9b48 (patch) | |
tree | 4ba9a1b0dbe771750bbf726644bae89f4a544f7a /swiftclient/multithreading.py | |
parent | e3b7ecd2bbc5120444b3c1643fb89ccd47e454bb (diff) | |
download | python-swiftclient-1d0c97fdb307f1e92f2b632cf3512d96b10f9b48.tar.gz |
Replaced print statements with print function.
This is needed for Python3 compatibility.
Change-Id: Iadd21e4b3a936b601a69f1db2aba8e1597f13fc3
Diffstat (limited to 'swiftclient/multithreading.py')
-rw-r--r-- | swiftclient/multithreading.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/swiftclient/multithreading.py b/swiftclient/multithreading.py index b98702d..935f61f 100644 --- a/swiftclient/multithreading.py +++ b/swiftclient/multithreading.py @@ -12,6 +12,9 @@ # implied. # See the License for the specific language governing permissions and # limitations under the License. + +from __future__ import print_function + from itertools import chain import sys from time import sleep @@ -258,7 +261,7 @@ class MultiThreadingManager(object): stream = self.print_stream if isinstance(item, unicode): item = item.encode('utf8') - print >>stream, item + print(item, file=stream) def _print_error(self, item): self.error_count += 1 |