mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
removed a redundant .strip(); made a doc string more or less tell the truth
This commit is contained in:
parent
247e16ef80
commit
db951c34e3
1 changed files with 5 additions and 3 deletions
|
@ -150,7 +150,7 @@ class PlistWriter(DumbXMLWriter):
|
||||||
self.beginElement("data")
|
self.beginElement("data")
|
||||||
for line in data.asBase64().split("\n"):
|
for line in data.asBase64().split("\n"):
|
||||||
if line:
|
if line:
|
||||||
self.writeln(line.strip())
|
self.writeln(line)
|
||||||
self.endElement("data")
|
self.endElement("data")
|
||||||
|
|
||||||
def writeDict(self, d):
|
def writeDict(self, d):
|
||||||
|
@ -196,8 +196,10 @@ class Dict:
|
||||||
|
|
||||||
class Plist(Dict):
|
class Plist(Dict):
|
||||||
|
|
||||||
"""The main Plist object. Basically a dict (the toplevel object of
|
"""The main Plist object. Basically a dict (the toplevel object
|
||||||
a plist is a dict) with one additional method: write()."""
|
of a plist is a dict) with two additional methods to read from
|
||||||
|
and write to files.
|
||||||
|
"""
|
||||||
|
|
||||||
def fromFile(cls, pathOrFile):
|
def fromFile(cls, pathOrFile):
|
||||||
didOpen = 0
|
didOpen = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue