From 6c4e9b4197c8bbf71761a2e426b8f6cf722fd102 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Thu, 9 Jan 2025 14:49:28 +0300 Subject: [PATCH] Update `helpers.is_binary` function to improve binary content detection --- reportportal_client/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reportportal_client/helpers.py b/reportportal_client/helpers.py index 82f09bb..7bf0f56 100644 --- a/reportportal_client/helpers.py +++ b/reportportal_client/helpers.py @@ -421,7 +421,7 @@ def is_binary(iterable: Union[bytes, bytearray, str]) -> bool: else: byte_iterable = iterable - if b'\x00' in byte_iterable or b'\xff' in byte_iterable: + if b"\x00" in byte_iterable or b"\xff" in byte_iterable: return True return False