From: Ned Deily Date: Fri, 22 Nov 2013 04:56:23 +0000 (-0800) Subject: Issue #14455: Fix maybe_open typo in Plist.fromFile(). X-Git-Tag: v3.4.0b1~129 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c06d6fdc37a70c28feaac60b06047b9f6357c05f;p=thirdparty%2FPython%2Fcpython.git Issue #14455: Fix maybe_open typo in Plist.fromFile(). --- diff --git a/Lib/plistlib.py b/Lib/plistlib.py index bdb8ab352e98..277ce622d001 100644 --- a/Lib/plistlib.py +++ b/Lib/plistlib.py @@ -137,7 +137,7 @@ class Plist(_InternalDict): @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)