From 89a178ac3ef13c4a4332c2f5381ea63bb78bc742 Mon Sep 17 00:00:00 2001 From: benoitc Date: Mon, 22 Apr 2013 11:00:54 +0200 Subject: [PATCH] fix python3 support --- gunicorn/workers/workertmp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/workers/workertmp.py b/gunicorn/workers/workertmp.py index ba53af2a..3d6af9eb 100644 --- a/gunicorn/workers/workertmp.py +++ b/gunicorn/workers/workertmp.py @@ -46,7 +46,7 @@ class WorkerTmp(object): except AttributeError: # python < 2.6 self._tmp.truncate(0) - os.write(self._tmp.fileno(), "X") + os.write(self._tmp.fileno(), b"X") def last_update(self): return os.fstat(self._tmp.fileno()).st_ctime