resolve py3 bytes issue for django apps

This commit is contained in:
Andrew Gorcester 2012-10-27 22:11:32 -07:00 committed by benoitc
parent e372a26342
commit f7b9a08c9c

View File

@ -273,7 +273,7 @@ class Arbiter(object):
Wake up the arbiter by writing to the PIPE
"""
try:
os.write(self.PIPE[1], '.')
os.write(self.PIPE[1], b'.')
except IOError as e:
if e.errno not in [errno.EAGAIN, errno.EINTR]:
raise