mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2024-11-12 10:04:11 +01:00
Update plist.py from pymodules
This commit is contained in:
parent
4083ca2078
commit
a7b5495417
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user