summaryrefslogtreecommitdiffstats
path: root/Lib/plistlib.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-12 21:42:13 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-12 21:42:13 (GMT)
commit236819310db3fe6f2fb22d48b780fa6ec253b6c7 (patch)
treece5ca9792381d9ced99e8e871324891ddbeb0e28 /Lib/plistlib.py
parentf9b54c24114b15ff920249244fe361aee276c248 (diff)
downloadcpython-236819310db3fe6f2fb22d48b780fa6ec253b6c7.zip
cpython-236819310db3fe6f2fb22d48b780fa6ec253b6c7.tar.gz
cpython-236819310db3fe6f2fb22d48b780fa6ec253b6c7.tar.bz2
Add warnings to and deprecated all those Mac modules
Diffstat (limited to 'Lib/plistlib.py')
-rw-r--r--Lib/plistlib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/plistlib.py b/Lib/plistlib.py
index 0ce5333..31d1e75 100644
--- a/Lib/plistlib.py
+++ b/Lib/plistlib.py
@@ -62,6 +62,7 @@ import binascii
import datetime
from cStringIO import StringIO
import re
+import warnings
def readPlist(pathOrFile):
@@ -113,6 +114,7 @@ def writePlistToString(rootObject):
def readPlistFromResource(path, restype='plst', resid=0):
"""Read plst resource from the resource fork of path.
"""
+ warnings.warnpy3k("In 3.x, readPlistFromResource is removed.")
from Carbon.File import FSRef, FSGetResourceForkName
from Carbon.Files import fsRdPerm
from Carbon import Res
@@ -127,6 +129,7 @@ def readPlistFromResource(path, restype='plst', resid=0):
def writePlistToResource(rootObject, path, restype='plst', resid=0):
"""Write 'rootObject' as a plst resource to the resource fork of path.
"""
+ warnings.warnpy3k("In 3.x, writePlistToResource is removed.")
from Carbon.File import FSRef, FSGetResourceForkName
from Carbon.Files import fsRdWrPerm
from Carbon import Res