Skip to content

Commit

Permalink
Don't use os.pathsep to find EOF
Browse files Browse the repository at this point in the history
not all distributions in win32 have them as \
instead check using sys.platform

Signed-off-by: Naveen M K <[email protected]>
  • Loading branch information
naveen521kk authored and lazka committed Aug 25, 2023
1 parent d25b6dd commit 389e4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,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)'
Expand Down

0 comments on commit 389e4cc

Please sign in to comment.