mirror of https://github.com/python/cpython
Issue #14455: Fix maybe_open typo in Plist.fromFile().
This commit is contained in:
parent
f6de9eb2bb
commit
c06d6fdc37
|
@ -137,7 +137,7 @@ class Plist(_InternalDict):
|
||||||
@classmethod
|
@classmethod
|
||||||
def fromFile(cls, pathOrFile):
|
def fromFile(cls, pathOrFile):
|
||||||
"""Deprecated. Use the load() function instead."""
|
"""Deprecated. Use the load() function instead."""
|
||||||
with maybe_open(pathOrFile, 'rb') as fp:
|
with _maybe_open(pathOrFile, 'rb') as fp:
|
||||||
value = load(fp)
|
value = load(fp)
|
||||||
plist = cls()
|
plist = cls()
|
||||||
plist.update(value)
|
plist.update(value)
|
||||||
|
|
Loading…
Reference in New Issue