Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

        def parsePlist(s):
    if s.startswith("bplist"):
        return BPlistReader.plistWithString(s)
    else:
        return plistlib.readPlistFromString(s)
        


src/p/y/pymobiledevice-HEAD/afc.py   pymobiledevice(Download)
from cmd import Cmd
import os
from util import hexdump, parsePlist
from pprint import pprint
import plistlib
    def do_cat(self, p):
        data = self.afc.get_file_contents(self.curdir + "/" + p)
        if data and p.endswith(".plist"):
            pprint(parsePlist(data))
        else:
    def do_pull(self, p):
        data = self.afc.get_file_contents(self.curdir + "/" + p)
        if data and p.endswith(".plist"):
            z = parsePlist(data)
            plistlib.writePlist(z, os.path.basename(p))