Files
MINGW-packages/mingw-w64-python/0073-pathlib-path-sep.patch
Christoph Reiter 4177c0198b python: Update to 3.10.8
See https://github.com/msys2-contrib/cpython-mingw/pull/110

update-patches: remove git version signature to keep the diff smaller
2022-10-15 15:57:24 +02:00

23 lines
581 B
Diff

From e8871d5b6c8dd351a20b5549526cbb0ab4b03d64 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 073/N] pathlib path sep
---
Lib/pathlib.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Lib/pathlib.py b/Lib/pathlib.py
index 97b23ca..035892f 100644
--- a/Lib/pathlib.py
+++ b/Lib/pathlib.py
@@ -115,6 +115,8 @@ class _WindowsFlavour(_Flavour):
sep = '\\'
altsep = '/'
+ if 'MSYSTEM' in os.environ:
+ sep, altsep = altsep, sep
has_drv = True
pathmod = ntpath