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
will9288 committed May 9, 2023
1 parent 4786b36 commit 91c42af
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 91c42af

Please sign in to comment.