Skip to content

Commit 107ed88

Browse files
bpo-38526: Fix zipfile.Path method name to be the correct one (GH-17317)
(cherry picked from commit 65444cf) Co-authored-by: Claudiu Popa <pcmanticore@gmail.com>
1 parent b2744c1 commit 107ed88

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)