]> granicus.if.org Git - python/commitdiff
Merged revisions 84582 via svnmerge from
authorBrian Curtin <brian.curtin@gmail.com>
Tue, 7 Sep 2010 13:27:20 +0000 (13:27 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Tue, 7 Sep 2010 13:27:20 +0000 (13:27 +0000)
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.
........

Lib/subprocess.py

index 1691c05b1f37df6f42c7c75ce83df2b6bef85ea8..24bf32182759f141a28e0ff4c497e1f1ac5f33cf 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("Unsupported signal")
+                raise ValueError("Unsupported signal: {}".format(sig))
 
         def terminate(self):
             """Terminates the process