From 190888536573bc1e7adcce74ff96332b8b6c4bfd Mon Sep 17 00:00:00 2001 From: Francis CLAIRICIA-ROSE-CLAIRE-JOSEPHINE Date: Sat, 30 Sep 2023 14:29:36 +0200 Subject: [PATCH] [FIX] Compressor serializers: Minor fix --- src/easynetwork/serializers/wrapper/compressor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/easynetwork/serializers/wrapper/compressor.py b/src/easynetwork/serializers/wrapper/compressor.py index e8f67c7f..b982f70b 100644 --- a/src/easynetwork/serializers/wrapper/compressor.py +++ b/src/easynetwork/serializers/wrapper/compressor.py @@ -186,7 +186,10 @@ def incremental_deserialize(self) -> Generator[None, bytes, tuple[_DTOPacketT, b results.append(chunk) del chunk - data = b"".join(results) + if len(results) == 1: + data = results[0] + else: + data = b"".join(results) unused_data: bytes = decompressor.unused_data del results, decompressor