]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #14455: Fix maybe_open typo in Plist.fromFile().
authorNed Deily <nad@acm.org>
Fri, 22 Nov 2013 04:56:23 +0000 (20:56 -0800)
committerNed Deily <nad@acm.org>
Fri, 22 Nov 2013 04:56:23 +0000 (20:56 -0800)
Lib/plistlib.py

index bdb8ab352e982e7e67ee72d9aa29c41321e227fe..277ce622d001e480a2c55f033f91444e116d9a9f 100644 (file)
@@ -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)