MINGW-packages/mingw-w64-python3.13/0050-Don-t-use-os.pathsep-to-find-EOF-not-all-distributio.patch
Christoph Reiter 04c9ed3700 python3.13: Add 3.13.7
* add libb2 as dep
* remove "-Wl,--large-address-aware", default now via makepkg
* remove 2to3 logic, no longer in Python
2025-09-08 22:02:30 +02:00

25 lines
767 B
Diff

From cd9262df2d933449408511116d01bde5e8777fd6 Mon Sep 17 00:00:00 2001
From: Naveen M K <naveen@syrusdark.website>
Date: Fri, 18 Jun 2021 12:38:11 +0530
Subject: [PATCH 050/N] Don't use os.pathsep to find EOF not all
distributions in win32 have them as \ instead check using sys.platform
Signed-off-by: Naveen M K <naveen@syrusdark.website>
---
Lib/site.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Lib/site.py b/Lib/site.py
index a08c6ec..51c4456 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -436,7 +436,7 @@ def setquit():
The repr of each object contains a hint at how it works.
"""
- if os.sep == '\\':
+ if sys.platform == 'win32':
eof = 'Ctrl-Z plus Return'
else:
eof = 'Ctrl-D (i.e. EOF)'