()
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected