Did I find the right examples for you? yes no

All Samples(33)  |  Call(29)  |  Derive(0)  |  Import(4)

src/p/r/prymatex-HEAD/prymatex/share/Support/lib/plist.py   prymatex(Download)
    # Monkey patch
    plistlib.readPlistFromString = lambda data: \
        plistlib.readPlistFromBytes(data.encode("utf-8"))
    plistlib.writePlistToString = lambda data: \
        plistlib.writePlistToBytes(data).decode("utf-8")

src/p/r/prymatex-HEAD/prymatex/utils/plist.py   prymatex(Download)
    # Monkey patch
    plistlib.readPlistFromString = lambda data: \
        plistlib.readPlistFromBytes(data.encode("utf-8"))
    plistlib.writePlistToString = lambda data: \
        plistlib.writePlistToBytes(data).decode("utf-8")

src/t/r/transmogrifier-HEAD/transmogrifier/anytranscoder.py   transmogrifier(Download)
	def loads(cls, s):
		try:
			return plistlib.readPlistFromBytes(s)
		except Exception, e:
			raise TranscoderLoadException(e)

src/s/u/sublemacspro-HEAD/jove.py   sublemacspro(Download)
    def run_cmd(self, util):
        import json
        from plistlib import readPlistFromBytes, writePlistToBytes
 
        data = self.view.substr(sublime.Region(0, self.view.size())).encode("utf-8")
        self.view.replace(util.edit, sublime.Region(0, self.view.size()),
                          json.dumps(readPlistFromBytes(data), indent=4, separators=(',', ': ')))
    def run_cmd(self, util):
        import json
        from plistlib import readPlistFromBytes, writePlistToBytes
 
        data = json.loads(self.view.substr(sublime.Region(0, self.view.size())))

src/t/h/ThemeTweaker-HEAD/theme_tweaker.py   ThemeTweaker(Download)
from os import makedirs
from os.path import join, basename, exists, dirname, normpath
from plistlib import readPlistFromBytes, writePlistToBytes
from ThemeTweaker.lib.file_strip.json import sanitize_json
from ThemeTweaker.lib.color_scheme_tweaker import ColorSchemeTweaker
            self.scheme_map["undo"] = ";".join(undo)
            self.plist_file = ColorSchemeTweaker().tweak(
                readPlistFromBytes(plist),
                self.scheme_map["undo"]
            )
            self.scheme_map["undo"] = ";".join(undo)
            self.plist_file = ColorSchemeTweaker().tweak(
                readPlistFromBytes(plist),
                self.scheme_map["undo"]
            )
            ct = ColorSchemeTweaker()
            self.plist_file = ct.tweak(
                readPlistFromBytes(plist),
                filters
            )

src/p/e/PersistentRegexHighlight-HEAD/persistent_regex_highlight/color_scheme_manager.py   PersistentRegexHighlight(Download)
            if VERSION > 3000:
                binary_data = get_binary_resource(package, resource)
                cs_plist = plistlib.readPlistFromBytes(binary_data)
            else:
                preferences_cs_absolute = os.path.join(sublime.packages_path(),

src/s/e/SerializedDataConverter-HEAD/lib/sublime_include/st3/plist.py   SerializedDataConverter(Download)
readPlistFromView = lambda view: plist_convert_from(
    plistlib.readPlistFromBytes(
        view.substr(
            sublime.Region(0, view.size())
        ).encode('utf8')

src/s/c/ScopeHunter-HEAD/ScopeHunterLib/color_scheme_matcher.py   ScopeHunter(Download)
    from plistlib import readPlist
else:
    from plistlib import readPlistFromBytes
from .rgba import RGBA
from os import path
        self.scheme_file = path.basename(self.color_scheme)
        if ST3:
            self.plist_file = filter(readPlistFromBytes(sublime.load_binary_resource(sublime_format_path(self.color_scheme))))
        else:
            self.plist_file = filter(readPlist(sublime.packages_path() + self.color_scheme.replace('Packages', '')))

src/a/a/AAAPackageDev-HEAD/fileconv/loaders.py   AAAPackageDev(Download)
                    data = plistlib.readPlistFromString(text)
                else:
                    data = plistlib.readPlistFromBytes(text.encode('utf-8'))
            except ExpatError as e:
                self.output.write_line(self.debug_base

src/m/o/mod-pbxproj-HEAD/mod_pbxproj3.py   mod-pbxproj(Download)
            return None
 
        tree = plistlib.readPlistFromBytes(stdout)
        return XcodeProject(tree, path)
 

  1 | 2  Next