]> granicus.if.org Git - python/commitdiff
Merged revisions 84559 via svnmerge from
authorBrian Curtin <brian.curtin@gmail.com>
Mon, 6 Sep 2010 16:31:27 +0000 (16:31 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Mon, 6 Sep 2010 16:31:27 +0000 (16:31 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84559 | brian.curtin | 2010-09-06 11:29:29 -0500 (Mon, 06 Sep 2010) | 6 lines

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

Lib/subprocess.py

index 68de777644ef34f5d8c9b43c44be83fd42a7bf29..1691c05b1f37df6f42c7c75ce83df2b6bef85ea8 100644 (file)
@@ -993,7 +993,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