[Python-checkins] r84582 - python/branches/py3k/Lib/subprocess.py

brian.curtin python-checkins at python.org
Tue Sep 7 15:24:38 CEST 2010


Author: brian.curtin
Date: Tue Sep  7 15:24:38 2010
New Revision: 84582

Log:
Adjust #8956 to add the bad signal number to the exception message.



Modified:
   python/branches/py3k/Lib/subprocess.py

Modified: python/branches/py3k/Lib/subprocess.py
==============================================================================
--- python/branches/py3k/Lib/subprocess.py	(original)
+++ python/branches/py3k/Lib/subprocess.py	Tue Sep  7 15:24:38 2010
@@ -983,7 +983,7 @@
             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


More information about the Python-checkins mailing list