From cb55baba365ece533ae09078c0d5505cda744155 Mon Sep 17 00:00:00 2001 From: Kaustav Banerjee Date: Sat, 18 Mar 2017 11:05:17 -0700 Subject: [PATCH] update streaminghttp.py The thing i editted are the reason i am getting syntax error when i am trying to install unirest as it imports poster. --- poster/streaminghttp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poster/streaminghttp.py b/poster/streaminghttp.py index bdff579..5d67f16 100644 --- a/poster/streaminghttp.py +++ b/poster/streaminghttp.py @@ -58,19 +58,19 @@ def send(self, value): # NOTE: we DO propagate the error, though, because we cannot simply # ignore the error... the caller will know if they can retry. if self.debuglevel > 0: - print "send:", repr(value) + print ("send:", repr(value)) try: blocksize = 8192 if hasattr(value, 'read') : if self.debuglevel > 0: - print "sendIng a read()able" + print ("sendIng a read()able") data = value.read(blocksize) while data: self.sock.sendall(data) data = value.read(blocksize) elif hasattr(value, 'next'): if self.debuglevel > 0: - print "sendIng an iterable" + print ("sendIng an iterable") for data in value: self.sock.sendall(data) else: