From 65444cf7fe84d8ca1f9b51c7f5992210751e08bb Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Thu, 21 Nov 2019 22:23:13 +0100 Subject: [PATCH] bpo-38526: Fix zipfile.Path method name to be the correct one (#17317) --- Doc/library/zipfile.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index 18d2e9a60a7..e8a2530fb8c 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -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.