Skip to content

Commit 731408d

Browse files
hauntsaninjaadamghill
authored andcommitted
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 fcb4e02 commit 731408d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)