Skip to content

Commit facd62c

Browse files
committed
try fix
error: unpack requires a string argument of length 4
1 parent dac47a4 commit facd62c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pymysqlreplication/bitmap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def _createLastWordMask(self):
4747
used = 1 + (self._nbits - 1) & 0x7
4848
mask = (~(1 << used) - 1) & 0xFF
4949

50+
b = bytearray(0)
5051
l = int((self._nbits + 7) / 8) & 0x3
5152
if l == 1:
5253
self._lastWordMask = ~0 & 0xFFFFFFFF

0 commit comments

Comments
 (0)