Skip to content

Commit 65444cf

Browse files
PCManticorejaraco
authored andcommitted
bpo-38526: Fix zipfile.Path method name to be the correct one (#17317)
1 parent 0aca3a3 commit 65444cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/zipfile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ Path objects are traversable using the ``/`` operator.
494494
Invoke :meth:`ZipFile.open` on the current path. Accepts
495495
the same arguments as :meth:`ZipFile.open`.
496496

497-
.. method:: Path.listdir()
497+
.. method:: Path.iterdir()
498498

499499
Enumerate the children of the current directory.
500500

0 commit comments

Comments
 (0)