From ddf05cfadb51c3777f39cc7d0bb6b8849b02a345 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Wed, 2 Jun 2021 09:21:54 +0200 Subject: [PATCH] fxconv: allow adding bytearray to ObjectData --- fxconv/fxconv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fxconv/fxconv.py b/fxconv/fxconv.py index 8c34b50..37a157d 100644 --- a/fxconv/fxconv.py +++ b/fxconv/fxconv.py @@ -180,6 +180,8 @@ class ObjectData: def __add__(self, other): if isinstance(other, bytes): self.elements.append(other) + elif isinstance(other, bytearray): + self.elements.append(bytes(other)) elif isinstance(other, Ref) and other.name: self.elements.append((other.name, other.offset)) elif isinstance(other, Ref) and other.data: