From 16a2de65c4696dd099b85fa7db603b5e916b064d Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 27 Jan 2019 20:01:12 +0000 Subject: [PATCH] issue #493: another Py3.x fix. --- mitogen/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/core.py b/mitogen/core.py index e0c85dd1..6979c878 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -2094,7 +2094,7 @@ class Latch(object): self._cls_all_sockets.extend((rsock, wsock)) return rsock, wsock - COOKIE_MAGIC, = struct.unpack('L', 'LTCH' * (struct.calcsize('L')//4)) + COOKIE_MAGIC, = struct.unpack('L', b('LTCH') * (struct.calcsize('L')//4)) COOKIE_FMT = 'Llll' COOKIE_SIZE = struct.calcsize(COOKIE_FMT)