From 885c6bc3e8de563ff8d62531fef483a645f3ddb1 Mon Sep 17 00:00:00 2001 From: Anthony Cabrera-Lara Date: Tue, 9 Jun 2026 16:21:35 -0400 Subject: [PATCH 1/3] Update Windows temp directory locations in tempfile.rst --- Doc/library/tempfile.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index bf9198e175a0e11..88f54573b39ed83 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -318,7 +318,7 @@ The module defines the following user-callable items: #. A platform-specific location: - * On Windows, the directories :file:`C:\\TEMP`, :file:`C:\\TMP`, + * On Windows, the directories :file:`%USERPROFILE%\\AppData\\Local\\Temp`, :file:`%SYSTEMROOT%\\Temp`, :file:`C:\\TEMP`, :file:`C:\\TMP`, :file:`\\TEMP`, and :file:`\\TMP`, in that order. * On all other platforms, the directories :file:`/tmp`, :file:`/var/tmp`, and From 394e9956fb13224073852ab40873c8213b63cf33 Mon Sep 17 00:00:00 2001 From: Anthony Cabrera-Lara Date: Tue, 9 Jun 2026 21:26:34 -0400 Subject: [PATCH 2/3] Reformat Windows temp directory paths for clarity --- Doc/library/tempfile.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index 88f54573b39ed83..7e85d627b9f3f4c 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -318,8 +318,11 @@ The module defines the following user-callable items: #. A platform-specific location: - * On Windows, the directories :file:`%USERPROFILE%\\AppData\\Local\\Temp`, :file:`%SYSTEMROOT%\\Temp`, :file:`C:\\TEMP`, :file:`C:\\TMP`, - :file:`\\TEMP`, and :file:`\\TMP`, in that order. + * On Windows, the directories + :file:`%USERPROFILE%\AppData\Local\Temp`, + :file:`%SYSTEMROOT%\Temp`, :file:`C:\TEMP`, + :file:`C:\TMP`, :file:`\TEMP`, and + :file:`\TMP`, in that order. * On all other platforms, the directories :file:`/tmp`, :file:`/var/tmp`, and :file:`/usr/tmp`, in that order. From d9fc2a25c4b8c494f037a07227a302a3f874431a Mon Sep 17 00:00:00 2001 From: Anthony Cabrera-Lara Date: Sun, 2 Aug 2026 17:35:06 -0400 Subject: [PATCH 3/3] Fix escape characters in tempfile.rst paths --- Doc/library/tempfile.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index 7e85d627b9f3f4c..0000051b2b3350d 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -319,10 +319,10 @@ The module defines the following user-callable items: #. A platform-specific location: * On Windows, the directories - :file:`%USERPROFILE%\AppData\Local\Temp`, - :file:`%SYSTEMROOT%\Temp`, :file:`C:\TEMP`, - :file:`C:\TMP`, :file:`\TEMP`, and - :file:`\TMP`, in that order. + :file:`%USERPROFILE%\\AppData\\Local\\Temp`, + :file:`%SYSTEMROOT%\\Temp`, :file:`C:\\TEMP`, + :file:`C:\\TMP`, :file:`\\TEMP`, and + :file:`\\TMP`, in that order. * On all other platforms, the directories :file:`/tmp`, :file:`/var/tmp`, and :file:`/usr/tmp`, in that order.