From f23d122168f03b750fcdbe173fbe6ceb34e0879d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Sun, 1 Apr 2018 15:47:17 -0300 Subject: [PATCH 1/3] os.walk uses os.scandir since 3.5 --- Doc/library/os.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/os.rst b/Doc/library/os.rst index bae432d33b0bd4..63d720ff12ea16 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -2812,7 +2812,7 @@ features: no effect on the behavior of the walk, because in bottom-up mode the directories in *dirnames* are generated before *dirpath* itself is generated. - By default, errors from the :func:`listdir` call are ignored. If optional + By default, errors from the :func:`scandir` call are ignored. If optional argument *onerror* is specified, it should be a function; it will be called with one argument, an :exc:`OSError` instance. It can report the error to continue with the walk, or raise the exception to abort the walk. Note that the filename From d0b9f2703e63a30c93d4b96d1d5b180e217920ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Sun, 1 Apr 2018 16:31:16 -0300 Subject: [PATCH 2/3] Add news --- .../next/Documentation/2018-04-01-16-29-13.bpo-33202.M2uWi3.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Documentation/2018-04-01-16-29-13.bpo-33202.M2uWi3.rst diff --git a/Misc/NEWS.d/next/Documentation/2018-04-01-16-29-13.bpo-33202.M2uWi3.rst b/Misc/NEWS.d/next/Documentation/2018-04-01-16-29-13.bpo-33202.M2uWi3.rst new file mode 100644 index 00000000000000..a7dfa2de8dc3e5 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2018-04-01-16-29-13.bpo-33202.M2uWi3.rst @@ -0,0 +1 @@ +Fix os.walk mentioning os.listdir instead of os.scandir From 4643c0ec374061674d3a147f96cc3279579499d3 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 2 Apr 2018 19:31:55 -0700 Subject: [PATCH 3/3] remove NEWS; not needed for very simple fixes --- .../next/Documentation/2018-04-01-16-29-13.bpo-33202.M2uWi3.rst | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Misc/NEWS.d/next/Documentation/2018-04-01-16-29-13.bpo-33202.M2uWi3.rst diff --git a/Misc/NEWS.d/next/Documentation/2018-04-01-16-29-13.bpo-33202.M2uWi3.rst b/Misc/NEWS.d/next/Documentation/2018-04-01-16-29-13.bpo-33202.M2uWi3.rst deleted file mode 100644 index a7dfa2de8dc3e5..00000000000000 --- a/Misc/NEWS.d/next/Documentation/2018-04-01-16-29-13.bpo-33202.M2uWi3.rst +++ /dev/null @@ -1 +0,0 @@ -Fix os.walk mentioning os.listdir instead of os.scandir