self.beginElement("data")
for line in data.asBase64().split("\n"):
if line:
- self.writeln(line.strip())
+ self.writeln(line)
self.endElement("data")
def writeDict(self, d):
class Plist(Dict):
- """The main Plist object. Basically a dict (the toplevel object of
- a plist is a dict) with one additional method: write()."""
+ """The main Plist object. Basically a dict (the toplevel object
+ of a plist is a dict) with two additional methods to read from
+ and write to files.
+ """
def fromFile(cls, pathOrFile):
didOpen = 0