Skip to content

Commit 67145da

Browse files
Changed condition to evaluate if timeout is less than or equals to 0
1 parent a1c6308 commit 67145da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2140,7 +2140,7 @@ def _communicate(self, input, endtime, orig_timeout):
21402140

21412141
while selector.get_map():
21422142
timeout = self._remaining_time(endtime)
2143-
if timeout is not None and timeout < 0:
2143+
if timeout is not None and timeout <= 0:
21442144
self._check_timeout(endtime, orig_timeout,
21452145
stdout, stderr,
21462146
skip_check_and_raise=True)

0 commit comments

Comments
 (0)