Skip to content

Commit

Permalink
Update helpers.is_binary function to improve binary content detection
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Jan 9, 2025
1 parent 4ac7e4f commit 6c4e9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reportportal_client/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6c4e9b4

Please sign in to comment.