mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix python3 support
This commit is contained in:
parent
d4f2481384
commit
89a178ac3e
@ -46,7 +46,7 @@ class WorkerTmp(object):
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
# python < 2.6
|
# python < 2.6
|
||||||
self._tmp.truncate(0)
|
self._tmp.truncate(0)
|
||||||
os.write(self._tmp.fileno(), "X")
|
os.write(self._tmp.fileno(), b"X")
|
||||||
|
|
||||||
def last_update(self):
|
def last_update(self):
|
||||||
return os.fstat(self._tmp.fileno()).st_ctime
|
return os.fstat(self._tmp.fileno()).st_ctime
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user