From c17eda3b8595e19ac242a283ae3d0e26d6f27703 Mon Sep 17 00:00:00 2001 From: CorpNewt Date: Fri, 12 Oct 2018 13:28:08 -0500 Subject: [PATCH] Wrap data in plistlib.Data --- Scripts/plist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/plist.py b/Scripts/plist.py index bca1d96..078ceb4 100644 --- a/Scripts/plist.py +++ b/Scripts/plist.py @@ -157,7 +157,7 @@ def readBinaryPlistFile(in_file): return datetime.datetime.utcfromtimestamp(f + MAC_OS_X_TIME_OFFSET) elif token_h == 0x40: #data s = getSize(token_l) - return in_file.read(s) + return plistlib.Data(in_file.read(s)) elif token_h == 0x50: #ascii string s = getSize(token_l) return in_file.read(s)