Skip to content

Commit 778dd04

Browse files
naveen521kklazka
authored andcommitted
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 <[email protected]>
1 parent da6930f commit 778dd04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/site.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def setquit():
398398
The repr of each object contains a hint at how it works.
399399
400400
"""
401-
if os.sep == '\\':
401+
if sys.platform == 'win32':
402402
eof = 'Ctrl-Z plus Return'
403403
else:
404404
eof = 'Ctrl-D (i.e. EOF)'

0 commit comments

Comments
 (0)