]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38526: Fix zipfile.Path method name to be the correct one (GH-17317)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 21 Nov 2019 21:41:20 +0000 (13:41 -0800)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2019 21:41:20 +0000 (13:41 -0800)
(cherry picked from commit 65444cf7fe84d8ca1f9b51c7f5992210751e08bb)

Co-authored-by: Claudiu Popa <pcmanticore@gmail.com>
Doc/library/zipfile.rst

index 18d2e9a60a7ba1c9a0ce3538325a43e34a122bf9..e8a2530fb8c1710834d525472e0683644cec3d29 100644 (file)
@@ -494,7 +494,7 @@ Path objects are traversable using the ``/`` operator.
    Invoke :meth:`ZipFile.open` on the current path. Accepts
    the same arguments as :meth:`ZipFile.open`.
 
-.. method:: Path.listdir()
+.. method:: Path.iterdir()
 
    Enumerate the children of the current directory.