]> granicus.if.org Git - python/commitdiff
Fix #8956. ValueError message was only mentioning one signal.
authorBrian Curtin <brian.curtin@gmail.com>
Mon, 6 Sep 2010 16:29:29 +0000 (16:29 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Mon, 6 Sep 2010 16:29:29 +0000 (16:29 +0000)
Rather than list out the three signals (or more over time), the message was
made less specific but still descriptive.

Lib/subprocess.py

index e41ffe386914bb16f022583fa6c4402db0ff710f..e53b69456e1629159a9a0bec7dd8cfaaf6b28300 100644 (file)
@@ -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