summarylogtreecommitdiffstats
path: root/0081-Don-t-use-os.pathsep-to-find-EOF.patch
diff options
context:
space:
mode:
Diffstat (limited to '0081-Don-t-use-os.pathsep-to-find-EOF.patch')
-rw-r--r--0081-Don-t-use-os.pathsep-to-find-EOF.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/0081-Don-t-use-os.pathsep-to-find-EOF.patch b/0081-Don-t-use-os.pathsep-to-find-EOF.patch
new file mode 100644
index 000000000000..42e218e12ad0
--- /dev/null
+++ b/0081-Don-t-use-os.pathsep-to-find-EOF.patch
@@ -0,0 +1,27 @@
+From c791a766360579cd96c1a03563f674ca4e9e5698 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 081/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 b344f03..474ef89 100644
+--- a/Lib/site.py
++++ b/Lib/site.py
+@@ -370,7 +370,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)'
+--
+2.33.0
+