From c06d6fdc37a70c28feaac60b06047b9f6357c05f Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Thu, 21 Nov 2013 20:56:23 -0800 Subject: [PATCH] Issue #14455: Fix maybe_open typo in Plist.fromFile(). --- Lib/plistlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/plistlib.py b/Lib/plistlib.py index bdb8ab352e9..277ce622d00 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)