]> granicus.if.org Git - python/commitdiff
removed a redundant .strip(); made a doc string more or less tell the truth
authorJust van Rossum <just@letterror.com>
Tue, 19 Nov 2002 23:11:49 +0000 (23:11 +0000)
committerJust van Rossum <just@letterror.com>
Tue, 19 Nov 2002 23:11:49 +0000 (23:11 +0000)
Mac/Lib/plistlib.py

index c3d0ed0760e90b06d4f4eb6ee8321eb1fbce98e5..c7ba0ad477863850a270c02759b941289f6f2849 100644 (file)
@@ -150,7 +150,7 @@ class PlistWriter(DumbXMLWriter):
                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):
@@ -196,8 +196,10 @@ class Dict:
 
 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