fix python3 support

This commit is contained in:
benoitc 2013-04-22 11:00:54 +02:00 committed by Randall Leeds
parent d4f2481384
commit 89a178ac3e

View File

@ -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