Wrap data in plistlib.Data

This commit is contained in:
CorpNewt 2018-10-12 13:28:08 -05:00 committed by GitHub
parent 4abdf13dd7
commit c17eda3b85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)