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)