mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
use the meth role for ZipFile.open
This commit is contained in:
parent
32799953b0
commit
f0f14f72bb
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue