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

Commit8cd72db

Browse files
committed
Stderr/stdout handlers need to be narrowed before closing
1 parent6edb08a commit8cd72db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/lithium/interestingness/timed_run.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def timed_run(
141141
print(" %s"%exc)
142142
sys.exit(2)
143143
finally:
144-
iflog_prefixisnotNone:
144+
ifisinstance(child_stderr,BinaryIO)andisinstance(child_stdout,BinaryIO):
145145
child_stdout.close()
146146
child_stderr.close()
147147
elapsed_time=time.time()-start_time

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp