Kaydet (Commit) c06d6fdc authored tarafından Ned Deily's avatar Ned Deily

Issue #14455: Fix maybe_open typo in Plist.fromFile().

üst f6de9eb2
...@@ -137,7 +137,7 @@ class Plist(_InternalDict): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment