From: Brian Curtin Date: Tue, 7 Sep 2010 13:27:20 +0000 (+0000) Subject: Merged revisions 84582 via svnmerge from X-Git-Tag: v2.7.1rc1~334 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e80513c207e7f24bfcb5bdd5113c92ef63f0c632;p=thirdparty%2FPython%2Fcpython.git Merged revisions 84582 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84582 | brian.curtin | 2010-09-07 08:24:38 -0500 (Tue, 07 Sep 2010) | 3 lines Adjust #8956 to add the bad signal number to the exception message. ........ --- diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 1691c05b1f37..24bf32182759 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -993,7 +993,7 @@ class Popen(object): elif sig == signal.CTRL_BREAK_EVENT: os.kill(self.pid, signal.CTRL_BREAK_EVENT) else: - raise ValueError("Unsupported signal") + raise ValueError("Unsupported signal: {}".format(sig)) def terminate(self): """Terminates the process