Skip to content

Commit

Permalink
Merge pull request #2301 from piotr1212/bytes
Browse files Browse the repository at this point in the history
carbonlink: set the type of the recv buffer explicitly to bytes
  • Loading branch information
deniszh committed May 28, 2018
2 parents 79eadd7 + f705c4f commit 836b254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/graphite/carbonlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def recv_response(self, conn):

@staticmethod
def recv_exactly(conn, num_bytes):
buf = ''
buf = b''
while len(buf) < num_bytes:
data = conn.recv(num_bytes - len(buf))
if not data:
Expand Down

0 comments on commit 836b254

Please sign in to comment.