Mercurial > cpython-lru_cache-weakref
changeset 87335:602e0a0ec67e
Issue #14455: Fix maybe_open typo in Plist.fromFile().
| author | Ned Deily <nad@acm.org> |
|---|---|
| date | Thu, 21 Nov 2013 20:56:23 -0800 |
| parents | 0534b882f9ce |
| children | 44d1ac9245cf |
| files | Lib/plistlib.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Lib/plistlib.py Fri Nov 22 05:49:29 2013 +0200 +++ b/Lib/plistlib.py Thu Nov 21 20:56:23 2013 -0800 @@ -137,7 +137,7 @@ @classmethod def fromFile(cls, pathOrFile): """Deprecated. Use the load() function instead.""" - with maybe_open(pathOrFile, 'rb') as fp: + with _maybe_open(pathOrFile, 'rb') as fp: value = load(fp) plist = cls() plist.update(value)
