Skip to content

Commit 6c4e9b4

Browse files
committed
Update helpers.is_binary function to improve binary content detection
1 parent 4ac7e4f commit 6c4e9b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reportportal_client/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def is_binary(iterable: Union[bytes, bytearray, str]) -> bool:
421421
else:
422422
byte_iterable = iterable
423423

424-
if b'\x00' in byte_iterable or b'\xff' in byte_iterable:
424+
if b"\x00" in byte_iterable or b"\xff" in byte_iterable:
425425
return True
426426
return False
427427

0 commit comments

Comments
 (0)