No need to assign the results of expressions used only for side effects.

This commit is contained in:
Georg Brandl 2010-02-06 22:59:15 +00:00
parent 7d4b759bd9
commit 84fedf7f06
8 changed files with 7 additions and 9 deletions

View file

@ -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