Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
86ca902e
Commit
86ca902e
authored
Oct 25, 2004
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate Plist class
parent
10e52dbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Lib/plat-mac/plistlib.py
Lib/plat-mac/plistlib.py
+8
-2
No files found.
Lib/plat-mac/plistlib.py
View file @
86ca902e
...
...
@@ -281,8 +281,14 @@ class Plist(Dict):
writePlist() functions instead.
"""
def
__init__
(
self
,
**
kwargs
):
from
warnings
import
warn
warn
(
"The Plist class is deprecated, use the readPlist() and "
"writePlist() functions instead"
,
PendingDeprecationWarning
)
super
(
Plist
,
self
).
__init__
(
**
kwargs
)
def
fromFile
(
cls
,
pathOrFile
):
"""Deprecated
!
Use the readPlist() function instead."""
"""Deprecated
.
Use the readPlist() function instead."""
rootObject
=
readPlist
(
pathOrFile
)
plist
=
cls
()
plist
.
update
(
rootObject
)
...
...
@@ -290,7 +296,7 @@ class Plist(Dict):
fromFile
=
classmethod
(
fromFile
)
def
write
(
self
,
pathOrFile
):
"""Deprecated
!
Use the writePlist() function instead."""
"""Deprecated
.
Use the writePlist() function instead."""
writePlist
(
self
,
pathOrFile
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment