Skip to content

Commit

Permalink
Remove use of collections.abc.ByteString
Browse files Browse the repository at this point in the history
This is an ABC that never really made much sense and was deprecated in python/cpython#91896
  • Loading branch information
hauntsaninja authored May 8, 2023
1 parent de4c663 commit ffc1a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_unicorn/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def is_non_string_sequence(obj):
if (
isinstance(obj, collections.abc.Sequence)
or isinstance(obj, collections.abc.Set)
) and not isinstance(obj, (str, collections.abc.ByteString)):
) and not isinstance(obj, (str, bytes, bytearray)):
return True

return False

0 comments on commit ffc1a66

Please sign in to comment.