MCPcopy Create free account
hub / github.com/corpnewt/gibMacOS / end_string

Method end_string

Scripts/disk.py:47–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 pa = plistlib.PlistParser()
46 # We also monkey patch this to encode unicode as utf-8
47 def end_string():
48 d = pa.getData()
49 if isinstance(d,unicode):
50 d = d.encode("utf-8")
51 pa.addObject(d)
52 pa.end_string = end_string
53 parser = ParserCreate()
54 parser.StartElementHandler = pa.handleBeginElement

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected