File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111import logging
1212import os
1313import signal
14- from subprocess import call , Popen , PIPE , DEVNULL
14+ from subprocess import Popen , PIPE , DEVNULL
1515import subprocess
1616import threading
1717from textwrap import dedent
@@ -544,16 +544,6 @@ def _terminate(self) -> None:
544544 self .status = self ._status_code_if_terminate or status
545545 except OSError as ex :
546546 log .info ("Ignored error after process had died: %r" , ex )
547- except AttributeError :
548- # Try Windows.
549- # For some reason, providing None for stdout/stderr still prints something. This is why
550- # we simply use the shell and redirect to nul. Slower than CreateProcess. The question
551- # is whether we really want to see all these messages. It's annoying no matter what.
552- if os .name == "nt" :
553- call (
554- ("TASKKILL /F /T /PID %s 2>nul 1>nul" % str (proc .pid )),
555- shell = True ,
556- )
557547 # END exception handling
558548
559549 def __del__ (self ) -> None :
You can’t perform that action at this time.
0 commit comments