summaryrefslogtreecommitdiffstats
path: root/Lib/plistlib.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2013-11-22 04:56:23 (GMT)
committerNed Deily <nad@acm.org>2013-11-22 04:56:23 (GMT)
commitc06d6fdc37a70c28feaac60b06047b9f6357c05f (patch)
tree2350a2c250a707fba37fe251aa0fea0f901ad04e /Lib/plistlib.py
parentf6de9eb2bb3c3c16694d582e3e1e2e9f56b97aab (diff)
downloadcpython-c06d6fdc37a70c28feaac60b06047b9f6357c05f.zip
cpython-c06d6fdc37a70c28feaac60b06047b9f6357c05f.tar.gz
cpython-c06d6fdc37a70c28feaac60b06047b9f6357c05f.tar.bz2
Issue #14455: Fix maybe_open typo in Plist.fromFile().
Diffstat (limited to 'Lib/plistlib.py')
-rw-r--r--Lib/plistlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plistlib.py b/Lib/plistlib.py
index bdb8ab3..277ce62 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)