Skip to content

Commit

Permalink
python 2.7 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
markreidvfx committed Jul 1, 2023
1 parent c86a7b3 commit ad9d4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/avb/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def copy(self, root):
elif isinstance(value, unicode):
obj[key] = value
elif isinstance(value, bytearray):
obj[key] = value.copy()
obj[key] = value[:]
elif isinstance(value, bytes):
raise ValueError("%s: bytes value type too ambiguous, use bytearray or unicode str" % key)
else:
Expand Down

0 comments on commit ad9d4c8

Please sign in to comment.