Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb85a31b

Browse files
committed
Fix newline char
1 parent73fe8cb commitb85a31b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Lib/test/test_repl.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def new_startup_env(*, code: str, histfile: str = ".pythonhist"):
7474
withos_helper.temp_dir()astmpdir:
7575
filename=os.path.join(tmpdir,"pythonstartup.py")
7676
withopen(filename,"w")asf:
77-
f.write(os.linesep.join(code.splitlines()))
77+
f.write('\n'.join(code.splitlines()))
7878
yield {"PYTHONSTARTUP":filename,"PYTHON_HISTORY":os.path.join(tmpdir,histfile)}
7979

8080

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp