Kaydet (Commit) 19651369 authored tarafından Brian Curtin's avatar Brian Curtin

Adjust #8956 to add the bad signal number to the exception message.

üst dc4872ee
...@@ -983,7 +983,7 @@ class Popen(object): ...@@ -983,7 +983,7 @@ class Popen(object):
elif sig == signal.CTRL_BREAK_EVENT: elif sig == signal.CTRL_BREAK_EVENT:
os.kill(self.pid, signal.CTRL_BREAK_EVENT) os.kill(self.pid, signal.CTRL_BREAK_EVENT)
else: else:
raise ValueError("Unsupported signal") raise ValueError("Unsupported signal: {}".format(sig))
def terminate(self): def terminate(self):
"""Terminates the process """Terminates the process
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment