chore: drop python 3.7 support (#284)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from struct import Struct, error
|
||||
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union
|
||||
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
|
||||
|
||||
from ..signature import SignatureType, Variant, get_signature_tree
|
||||
|
||||
|
||||
@@ -513,10 +513,8 @@ class Unmarshaller:
|
||||
-self._pos & (UINT32_SIZE - 1)
|
||||
) + UINT32_SIZE # align for the uint32
|
||||
if self._is_native and cython.compiled:
|
||||
array_length = (
|
||||
_cast_uint32_native( # type: ignore[name-defined] # pragma: no cover
|
||||
self._buf, self._pos - UINT32_SIZE
|
||||
)
|
||||
array_length = _cast_uint32_native( # type: ignore[name-defined] # pragma: no cover
|
||||
self._buf, self._pos - UINT32_SIZE
|
||||
)
|
||||
else:
|
||||
array_length = self._uint32_unpack(self._buf, self._pos - UINT32_SIZE)[0] # type: ignore[misc]
|
||||
|
||||
@@ -21,7 +21,7 @@ def _message_reader(
|
||||
return
|
||||
try:
|
||||
process(message)
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
logging.error("Unexpected error processing message: %s", exc_info=True)
|
||||
# If we are not negotiating unix fds, we can stop reading as soon as we have
|
||||
# the buffer is empty as asyncio will call us again when there is more data.
|
||||
|
||||
Reference in New Issue
Block a user