Update plist.py from pymodules

This commit is contained in:
CorpNewt 2020-10-16 11:01:55 -05:00
parent 4083ca2078
commit a7b5495417

View File

@ -28,8 +28,12 @@ except AttributeError:
# Helper Methods #
### ###
def get_data(value):
if sys.version_info < (3,0): return plistlib.Data(value)
def wrap_data(value):
if not _check_py3(): return plistlib.Data(value)
return value
def extract_data(value):
if not _check_py3() and isinstance(value,plistlib.Data): return value.data
return value
def _check_py3():