home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.5)
-
-
- def plisttype_to_pytype(plist):
- type = plist._name
- transformer = globals().get('plist_to_%s' % type, None)
- if transformer is not None:
- return transformer(plist)
- else:
- return plist
-
-
- def _from_data(cdata):
- return cdata.decode('base64')
-
-
- def _to_data(data):
- return data.encode('base64')
-
-
- def plist_to_real(plist):
- return float(plist._cdata)
-
-
- def plist_to_string(plist):
- return unicode(plist._cdata)
-
-
- def plist_to_array(plist):
- return map(plisttype_to_pytype, plist._children)
-
-
- def plist_to_dict(plist):
- result = { }
- key = None
- value = None
- for child in plist._children:
- if child._name == 'key':
- key = child._cdata
- continue
- value = plisttype_to_pytype(child)
- result[key] = value
- key = None
- value = None
-
- return result
-
-