From ad9d4c86203dd96e3378f14aa26e01347622c8c1 Mon Sep 17 00:00:00 2001 From: Mark Reid Date: Fri, 30 Jun 2023 17:58:43 -0700 Subject: [PATCH] python 2.7 fix --- src/avb/attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/avb/attributes.py b/src/avb/attributes.py index 57d0d98..90af5be 100644 --- a/src/avb/attributes.py +++ b/src/avb/attributes.py @@ -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: