From 8efe53eebb03ce6b692dc43775a7171b00c2a392 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 31 Oct 2013 21:00:43 +0100 Subject: [PATCH] Fix accelerate module on centos 5 by removing unsupported string prefix in 2.4 http://docs.python.org/release/2.4/ref/strings.html This is also ignored on later version of python 2 and is present only for python 3 conversion, as seen on http://docs.python.org/2/reference/lexical_analysis.html#string-literals Also see http://stackoverflow.com/questions/6269765/what-does-the-b-character-do-in-front-of-a-string-literal Fix https://github.com/ansible/ansible/issues/4739 --- library/utilities/accelerate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/utilities/accelerate b/library/utilities/accelerate index 8381c52e11d..c4d726e62a0 100644 --- a/library/utilities/accelerate +++ b/library/utilities/accelerate @@ -197,7 +197,7 @@ class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler): def recv_data(self): header_len = 8 # size of a packed unsigned long long - data = b"" + data = "" vvvv("in recv_data(), waiting for the header") while len(data) < header_len: d = self.request.recv(header_len - len(data))