From: Benjamin Peterson Date: Fri, 13 Mar 2015 03:41:06 +0000 (-0500) Subject: use the meth role for ZipFile.open X-Git-Tag: v3.5.0a3~188^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0f14f72bb8aba4955749c7993f72083c2680fbe;p=thirdparty%2FPython%2Fcpython.git use the meth role for ZipFile.open --- diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index b416bf7e1844..535552d62229 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: