Visitar URL original
gh-101992: update plistlib examples to be runnable by dtrodrigues · Pull Request #101994 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Doc/library/plistlib.rst
  • Loading branch information
terryjreedy authored Feb 17, 2023
commit 1fe2b60bedb152606bc8a88314b6389a53919f68
3 changes: 1 addition & 2 deletions Doc/library/plistlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ Generating a plist::
someMoreData = b"<lots of binary gunk>" * 10,
aDate = datetime.datetime.now()
)
with open("blah.plist", 'wb') as fp:
plistlib.dump(pl, fp)
print(plistlib.dumps(pl).decode())

Parsing a plist::

Expand Down