issue #493: Py3.x fix.

issue510
David Wilson 6 years ago
parent 9f7db66f67
commit 2a70b3d5f4

@ -2094,7 +2094,7 @@ class Latch(object):
self._cls_all_sockets.extend((rsock, wsock)) self._cls_all_sockets.extend((rsock, wsock))
return rsock, wsock return rsock, wsock
COOKIE_MAGIC, = struct.unpack('L', 'LTCH' * (struct.calcsize('L')/4)) COOKIE_MAGIC, = struct.unpack('L', 'LTCH' * (struct.calcsize('L')//4))
COOKIE_FMT = 'Llll' COOKIE_FMT = 'Llll'
COOKIE_SIZE = struct.calcsize(COOKIE_FMT) COOKIE_SIZE = struct.calcsize(COOKIE_FMT)

Loading…
Cancel
Save