--- jython2.7a2clean/Lib/subprocess.py 2012-05-24 15:50:24.000000000 -0600 +++ jython2.7a2/Lib/subprocess.py 2012-05-30 00:09:21.000000000 -0600 @@ -396,6 +396,7 @@ import types import traceback import signal +import warnings # Exception classes used by this module. class CalledProcessError(Exception): @@ -711,7 +712,6 @@ return if not _shell_command: - import warnings warnings.warn('Unable to determine _shell_command for ' 'underlying os: %s' % os._name, RuntimeWarning, 3) _setup_platform() @@ -1383,7 +1383,10 @@ def terminate(self): """Terminates the process """ - _subprocess.TerminateProcess(self._handle, 1) + try: + _subprocess.TerminateProcess(self._handle, 1) + except NameError: + warnings.warn('Methods subprocess.terminate() and subprocess.kill() not yet implemented.', RuntimeWarning) kill = terminate