mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Yet another PEP 8 :)
This commit is contained in:
1 parent
7cf409c392
commit
bbee5f90a0
106 files changed
+9
-29
No files matched your search
@@ -28,7 +28,6 @@ import re
|
||||
import asyncio
|
||||
import socket
|
||||
import shutil
|
||||
import atexit
|
||||
|
||||
from pkg_resources import parse_version
|
||||
from .vpcs_error import VPCSError
|
||||
@@ -82,11 +81,9 @@ class VPCSVM(BaseVM):
|
||||
|
||||
self._check_requirements()
|
||||
|
||||
|
||||
def __del__(self):
|
||||
self._kill_process()
|
||||
|
||||
|
||||
def _check_requirements(self):
|
||||
"""
|
||||
Check if VPCS is available with the correct version
|
||||
@@ -184,7 +181,6 @@ class VPCSVM(BaseVM):
|
||||
stderr=subprocess.STDOUT,
|
||||
cwd=self.working_dir,
|
||||
creationflags=flags)
|
||||
#atexit(self._kill_process) # Ensure we don't leave orphan process
|
||||
log.info("VPCS instance {} started PID={}".format(self.name, self._process.pid))
|
||||
self._started = True
|
||||
except (OSError, subprocess.SubprocessError) as e:
|
||||
@@ -192,7 +188,6 @@ class VPCSVM(BaseVM):
|
||||
log.error("Could not start VPCS {}: {}\n{}".format(self._path, e, vpcs_stdout))
|
||||
raise VPCSError("Could not start VPCS {}: {}\n{}".format(self._path, e, vpcs_stdout))
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def stop(self):
|
||||
"""
|
||||
@@ -221,7 +216,6 @@ class VPCSVM(BaseVM):
|
||||
except ProcessLookupError:
|
||||
pass
|
||||
|
||||
|
||||
def read_vpcs_stdout(self):
|
||||
"""
|
||||
Reads the standard output of the VPCS process.
|
||||
|
||||
Reference in new issue
Block a user