[Python-checkins] r84583 - in python/branches/release27-maint: Lib/subprocess.py

brian.curtin python-checkins at python.org
Tue Sep 7 15:27:20 CEST 2010


Author: brian.curtin
Date: Tue Sep  7 15:27:20 2010
New Revision: 84583

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


Modified:
   python/branches/release27-maint/   (props changed)
   python/branches/release27-maint/Lib/subprocess.py

Modified: python/branches/release27-maint/Lib/subprocess.py
==============================================================================
--- python/branches/release27-maint/Lib/subprocess.py	(original)
+++ python/branches/release27-maint/Lib/subprocess.py	Tue Sep  7 15:27:20 2010
@@ -993,7 +993,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