mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
No need to assign the results of expressions used only for side effects.
This commit is contained in:
parent
7d4b759bd9
commit
84fedf7f06
8 changed files with 7 additions and 9 deletions
|
@ -920,7 +920,7 @@ class Popen(object):
|
|||
"""Wait for child process to terminate. Returns returncode
|
||||
attribute."""
|
||||
if self.returncode is None:
|
||||
obj = WaitForSingleObject(self._handle, INFINITE)
|
||||
WaitForSingleObject(self._handle, INFINITE)
|
||||
self.returncode = GetExitCodeProcess(self._handle)
|
||||
return self.returncode
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue