aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2012-11-14 13:16:33 +0200
committerJukka Jylänki <jujjyl@gmail.com>2012-11-14 13:16:33 +0200
commitf5dd729eb228001f9e1756eaa4a294bd9b2d2c95 (patch)
tree91bb013b4a625e6a121ebcad42663ec772a337fe /tools
parent5ec613c59de33b4949d17397aff81d54e49c21c6 (diff)
Fix typo in WindowsPopen.kill(). Avoid using returncode variable manually, but just route through poll() instead.
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 19ba71bb..b2102109 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -29,7 +29,7 @@ class WindowsPopen:
# Call the process with fixed streams.
self.process = subprocess.Popen(args, bufsize, executable, self.stdin_, self.stdout_, self.stderr_, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)
-
+
def communicate(self, input=None):
output = self.process.communicate(input)
self.returncode = self.process.returncode
@@ -51,10 +51,10 @@ class WindowsPopen:
return (output[0], output[1])
def poll(self):
- return self.process.returncode
+ return self.process.poll()
def kill(self):
- return self.process.kill
+ return self.process.kill()
# Install our replacement Popen handler if we are running on Windows to avoid python spawn process function.
if os.name == 'nt':