Skip to content

Commit dacd384

Browse files
committed
Still use byte arrays~
1 parent 16d2b2f commit dacd384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mysql/connector/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def recv_plain(self):
220220
"""Receive packets from the MySQL server"""
221221
try:
222222
# Read the header of the MySQL packet, 4 bytes
223-
packet = self.sock.recv(1)
223+
packet = bytearray()
224224
while len(packet) < 4:
225225
chunk = self.sock.recv(1)
226226
if not chunk:

0 commit comments

Comments
 (0)