This commit is contained in:
Iliyan Angelov
2025-12-01 06:50:10 +02:00
parent 91f51bc6fe
commit 62c1fe5951
4682 changed files with 544807 additions and 31208 deletions

View File

@@ -65,8 +65,7 @@ class MysqlPacket:
if len(result) != size:
error = (
"Result length not requested length:\n"
"Expected=%s. Actual=%s. Position: %s. Data Length: %s"
% (size, len(result), self._position, len(self._data))
f"Expected={size}. Actual={len(result)}. Position: {self._position}. Data Length: {len(self._data)}"
)
if DEBUG:
print(error)
@@ -89,8 +88,7 @@ class MysqlPacket:
new_position = self._position + length
if new_position < 0 or new_position > len(self._data):
raise Exception(
"Invalid advance amount (%s) for cursor. "
"Position=%s" % (length, new_position)
f"Invalid advance amount ({length}) for cursor. Position={new_position}"
)
self._position = new_position