From f7b9a08c9c8abc14a2d52844f9071d4c536e860d Mon Sep 17 00:00:00 2001 From: Andrew Gorcester Date: Sat, 27 Oct 2012 22:11:32 -0700 Subject: [PATCH] resolve py3 bytes issue for django apps --- gunicorn/arbiter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/arbiter.py b/gunicorn/arbiter.py index af0209e1..340ea299 100644 --- a/gunicorn/arbiter.py +++ b/gunicorn/arbiter.py @@ -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