Skip to content

Commit ffc1a66

Browse files
authored
Remove use of collections.abc.ByteString
This is an ABC that never really made much sense and was deprecated in python/cpython#91896
1 parent de4c663 commit ffc1a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: django_unicorn/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def is_non_string_sequence(obj):
280280
if (
281281
isinstance(obj, collections.abc.Sequence)
282282
or isinstance(obj, collections.abc.Set)
283-
) and not isinstance(obj, (str, collections.abc.ByteString)):
283+
) and not isinstance(obj, (str, bytes, bytearray)):
284284
return True
285285

286286
return False

0 commit comments

Comments
 (0)