| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | import logging | |
| 12 | 12 | import os | |
| 13 | 13 | import signal | |
| 14 | - from subprocess import call, Popen, PIPE, DEVNULL | ||
| 14 | + from subprocess import Popen, PIPE, DEVNULL | ||
| 15 | 15 | import subprocess | |
| 16 | 16 | import threading | |
| 17 | 17 | from textwrap import dedent | |
@@ -544,16 +544,6 @@ def _terminate(self) -> None: | |||
| 544 | 544 | self.status = self._status_code_if_terminate or status | |
| 545 | 545 | except OSError as ex: | |
| 546 | 546 | 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 | - ) | ||
| 557 | 547 | # END exception handling | |
| 558 | 548 | ||
| 559 | 549 | def __del__(self) -> None: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments