Fix Python3 tests

This commit is contained in:
Aldo Cortesi 2016-06-14 16:13:50 +12:00
parent 59aff68e7a
commit 4c292b0197
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class HangHandler(tcp.BaseHandler):
self.connection.setblocking(0)
ret = self.connection.recv(1)
# Client connection is dead...
if ret == "":
if ret == "" or ret == b"":
return
except socket.error:
pass