summarylogtreecommitdiffstats
path: root/0075-pathlib-path-sep.patch
diff options
context:
space:
mode:
authoratomlong2021-10-23 17:55:22 +0800
committeratomlong2021-10-23 18:06:15 +0800
commit80096c8de4b34ec1ed8f30bb428918cd592b2424 (patch)
treeb48dd1e73de9ea35a4709fb6b93deb16331ec514 /0075-pathlib-path-sep.patch
parent89a67c05174951d172252b1db96ff93cc4ec4bcd (diff)
downloadaur-mingw-w64-python.tar.gz
update to 3.9.7
Diffstat (limited to '0075-pathlib-path-sep.patch')
-rw-r--r--0075-pathlib-path-sep.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/0075-pathlib-path-sep.patch b/0075-pathlib-path-sep.patch
new file mode 100644
index 000000000000..9adef32da169
--- /dev/null
+++ b/0075-pathlib-path-sep.patch
@@ -0,0 +1,25 @@
+From 81189e3707d4f72b57e86e40f065f811d80a97ac Mon Sep 17 00:00:00 2001
+From: Christoph Reiter <reiter.christoph@gmail.com>
+Date: Thu, 17 Jun 2021 18:52:31 +0530
+Subject: [PATCH 075/N] pathlib path sep
+
+---
+ Lib/pathlib.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/Lib/pathlib.py b/Lib/pathlib.py
+index 7aeda14..a66e754 100644
+--- a/Lib/pathlib.py
++++ b/Lib/pathlib.py
+@@ -123,6 +123,8 @@ class _WindowsFlavour(_Flavour):
+
+ sep = '\\'
+ altsep = '/'
++ if 'MSYSTEM' in os.environ:
++ sep, altsep = altsep, sep
+ has_drv = True
+ pathmod = ntpath
+
+--
+2.33.0
+