From f0f14f72bb8aba4955749c7993f72083c2680fbe Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 12 Mar 2015 22:41:06 -0500 Subject: [PATCH] use the meth role for ZipFile.open --- Doc/library/zipfile.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index b416bf7e184..535552d6222 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -210,7 +210,7 @@ ZipFile Objects password used for encrypted files. Calling :meth:`.open` on a closed ZipFile will raise a :exc:`RuntimeError`. - :func:`~ZipFile.open` is also a context manager and therefore supports the + :meth:`~ZipFile.open` is also a context manager and therefore supports the :keyword:`with` statement:: with ZipFile('spam.zip') as myzip: