mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix #8956. ValueError message was only mentioning one signal.
Rather than list out the three signals (or more over time), the message was made less specific but still descriptive.
This commit is contained in:
parent
c734b312cb
commit
5c997b8d90
1 changed files with 1 additions and 1 deletions
|
@ -983,7 +983,7 @@ class Popen(object):
|
|||
elif sig == signal.CTRL_BREAK_EVENT:
|
||||
os.kill(self.pid, signal.CTRL_BREAK_EVENT)
|
||||
else:
|
||||
raise ValueError("Only SIGTERM is supported on Windows")
|
||||
raise ValueError("Unsupported signal")
|
||||
|
||||
def terminate(self):
|
||||
"""Terminates the process
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue