summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-11-19 23:11:49 (GMT)
committerJust van Rossum <just@letterror.com>2002-11-19 23:11:49 (GMT)
commitdb951c34e333d5b9d20fcb2e9cf54a599ba7d15a (patch)
treef29a36d1005d271450619b9cad3ce657f4f475cd /Mac/Lib
parent247e16ef802adde4143f795ea37ec2e4032a918e (diff)
downloadcpython-db951c34e333d5b9d20fcb2e9cf54a599ba7d15a.zip
cpython-db951c34e333d5b9d20fcb2e9cf54a599ba7d15a.tar.gz
cpython-db951c34e333d5b9d20fcb2e9cf54a599ba7d15a.tar.bz2
removed a redundant .strip(); made a doc string more or less tell the truth
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/plistlib.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Mac/Lib/plistlib.py b/Mac/Lib/plistlib.py
index c3d0ed0..c7ba0ad 100644
--- a/Mac/Lib/plistlib.py
+++ b/Mac/Lib/plistlib.py
@@ -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