Commit a8e0e995 authored by Arnaud Fontaine's avatar Arnaud Fontaine

zope4py3: send() must be bytes(), not str().

  File "product/TimerService/timerserver/TimerServer.py", line 71, in run
    s.send('GET / HTTP/1.1\r\n\r\n')
TypeError: a bytes-like object is required, not 'str'
parent 9dbe48b4
...@@ -83,7 +83,7 @@ class TimerServer(threading.Thread): ...@@ -83,7 +83,7 @@ class TimerServer(threading.Thread):
except socket.error: except socket.error:
time.sleep(5) time.sleep(5)
continue continue
s.send('GET / HTTP/1.1\r\n\r\n') s.send(b'GET / HTTP/1.1\r\n\r\n')
s.recv(4096) # blocks until a response is received s.recv(4096) # blocks until a response is received
break break
s.close() s.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment