summarylogtreecommitdiffstats
path: root/0088-importlib-bootstrap-path-sep.patch
diff options
context:
space:
mode:
authoratomlong2021-08-28 11:19:04 +0800
committeratomlong2021-08-28 13:15:13 +0800
commit89a67c05174951d172252b1db96ff93cc4ec4bcd (patch)
treed8c39fa79b201cf9aea28c51e7446a252ed8fee4 /0088-importlib-bootstrap-path-sep.patch
parentcf8d8d8771493a2aa8370ed323d06dc733a84181 (diff)
downloadaur-89a67c05174951d172252b1db96ff93cc4ec4bcd.tar.gz
Update to 3.9.6
Diffstat (limited to '0088-importlib-bootstrap-path-sep.patch')
-rw-r--r--0088-importlib-bootstrap-path-sep.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/0088-importlib-bootstrap-path-sep.patch b/0088-importlib-bootstrap-path-sep.patch
new file mode 100644
index 000000000000..f16c8398ec21
--- /dev/null
+++ b/0088-importlib-bootstrap-path-sep.patch
@@ -0,0 +1,31 @@
+From 70b8703cafcfd25608f53a4a70403700dd695202 Mon Sep 17 00:00:00 2001
+From: Christoph Reiter <reiter.christoph@gmail.com>
+Date: Thu, 17 Jun 2021 18:52:30 +0530
+Subject: [PATCH 088/N] importlib bootstrap path sep
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Co-authored-by: Алексей <alexey.pawlow@gmail.com>
+---
+ Lib/importlib/_bootstrap_external.py | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
+index fe31f43..229d9aa 100644
+--- a/Lib/importlib/_bootstrap_external.py
++++ b/Lib/importlib/_bootstrap_external.py
+@@ -1674,6 +1674,10 @@ def _setup(_bootstrap_module):
+ else:
+ raise ImportError('importlib requires posix or nt')
+
++ if 'MSYSTEM' in os_module.environ:
++ path_separators = path_separators[::-1]
++ path_sep = path_separators[0]
++
+ setattr(self_module, '_os', os_module)
+ setattr(self_module, 'path_sep', path_sep)
+ setattr(self_module, 'path_separators', ''.join(path_separators))
+--
+2.32.0
+