Did I find the right examples for you? yes no

All Samples(189)  |  Call(188)  |  Derive(0)  |  Import(1)
Read a plist data from a string. Return the root object.
    

        def readPlistFromString(data):
    """Read a plist data from a string. Return the root object.
    """
    return readPlist(StringIO(data))
        


src/p/r/prymatex-HEAD/prymatex/share/Support/lib/plist.py   prymatex(Download)
    except Exception as e:
        # Solo si tiene error
        data = plistlib.readPlistFromString(__fixString(encoding.read(filePath)[0]))
    return __fixItems(data, __fixReadItem)
 
def readPlistFromString(string):
    try:
        data = plistlib.readPlistFromString(string)
    except Exception as e:
        # Solo si tiene error
        data = plistlib.readPlistFromString(__fixString(string))

src/p/r/prymatex-HEAD/prymatex/utils/plist.py   prymatex(Download)
    except Exception as e:
        # Solo si tiene error
        data = plistlib.readPlistFromString(__fixString(encoding.read(filePath)[0]))
    return __fixItems(data, __fixReadItem)
 
def readPlistFromString(string):
    try:
        data = plistlib.readPlistFromString(string)
    except Exception as e:
        # Solo si tiene error
        data = plistlib.readPlistFromString(__fixString(string))

src/m/e/metaserializer-0.006/metaserializer/msplist.py   metaserializer(Download)
    def loadb(self, b):
        assert isinstance(b, bytes)
        return plistlib.readPlistFromString(b)
 

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/YNAB-budget-check/alp/core.py   AlfredWorkflow.com(Download)
        with codecs.open(path, "r", "utf-8") as f:
            s = f.read()
        return plistlib.readPlistFromString(s)
    else:
        return biplist.readPlist(path)

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/SearchKippt/alp/core.py   AlfredWorkflow.com(Download)
        with codecs.open(path, "r", "utf-8") as f:
            s = f.read()
        return plistlib.readPlistFromString(s)
    else:
        return biplist.readPlist(path)

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/nuomituangou/alp/core.py   AlfredWorkflow.com(Download)
        with codecs.open(path, "r", "utf-8") as f:
            s = f.read()
        return plistlib.readPlistFromString(s)
    else:
        return biplist.readPlist(path)

src/s/a/sal-HEAD/server/models.py   sal(Download)
    def decode(self, data):
        # this has some sucky workarounds for odd handling
        # of UTF-8 data in sqlite3
        try:
            plist = plistlib.readPlistFromString(data)
            return plist
        except:
            try:
                plist = plistlib.readPlistFromString(data.encode('UTF-8'))
    def b64bz_decode(self, data):
        try:
            bz2data = base64.b64decode(data)
            string = bz2.decompress(bz2data)
            plist = plistlib.readPlistFromString(string)

src/m/a/macscripts-HEAD/Munki/Auth/UnlockNetwork/uninstall.py   macscripts(Download)
task = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(out, err) = task.communicate()
formatted = plistlib.readPlistFromString(out)
 
# If we're on 10.9 and the group doesn't match, we're going to correct it.
task = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(out, err) = task.communicate()
formatted = plistlib.readPlistFromString(out)
 
# If the group doesn't match, we're going to correct it.

src/m/a/macscripts-HEAD/Munki/Auth/UnlockNetwork/postinstall.py   macscripts(Download)
task = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(out, err) = task.communicate()
formatted = plistlib.readPlistFromString(out)
 
# If we're on 10.9 and the group doesn't match, we're going to correct it.
task = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(out, err) = task.communicate()
formatted = plistlib.readPlistFromString(out)
 
# If the group doesn't match, we're going to correct it.

src/w/o/Workflows-HEAD/Yourls Stats/alp/core.py   Workflows(Download)
        with codecs.open(path, "r", "utf-8") as f:
            s = f.read()
        return plistlib.readPlistFromString(s)
    else:
        return biplist.readPlist(path)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next