~pythonregexp2.7/python/issue2636

« back to all changes in this revision

Viewing changes to Lib/plistlib.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-05-24 16:05:21 UTC
  • mfrom: (39021.1.401 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080524160521-1xenj7p6u3wb89et
Merged in changes from the latest python source snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
import datetime
63
63
from cStringIO import StringIO
64
64
import re
 
65
import warnings
65
66
 
66
67
 
67
68
def readPlist(pathOrFile):
113
114
def readPlistFromResource(path, restype='plst', resid=0):
114
115
    """Read plst resource from the resource fork of path.
115
116
    """
 
117
    warnings.warnpy3k("In 3.x, readPlistFromResource is removed.")
116
118
    from Carbon.File import FSRef, FSGetResourceForkName
117
119
    from Carbon.Files import fsRdPerm
118
120
    from Carbon import Res
127
129
def writePlistToResource(rootObject, path, restype='plst', resid=0):
128
130
    """Write 'rootObject' as a plst resource to the resource fork of path.
129
131
    """
 
132
    warnings.warnpy3k("In 3.x, writePlistToResource is removed.")
130
133
    from Carbon.File import FSRef, FSGetResourceForkName
131
134
    from Carbon.Files import fsRdWrPerm
132
135
    from Carbon import Res