Skip to content

Commit d8ba008

Browse files
PCManticoreJake Taylor
authored andcommitted
bpo-38526: Fix zipfile.Path method name to be the correct one (python#17317)
1 parent d582608 commit d8ba008

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)