remove psutil

This commit is contained in:
Shivaram Lingamneni 2020-09-13 06:47:50 -04:00 committed by Valentin Lorentz
parent ac2671acb0
commit e6b1ca5521
2 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,6 @@ import socket
import tempfile
import time
import subprocess
import psutil
from .runner import NotImplementedByController
@ -95,7 +94,9 @@ class BaseServerController(_BaseController):
def wait_for_port(self):
while not self.port_open:
time.sleep(0.1)
for conn in psutil.Process(self.proc.pid).connections():
if conn.laddr[1] == self.port:
self.port_open = True
try:
c = socket.create_connection(('localhost', self.port), timeout=1.0)
c.close()
self.port_open = True
except Exception as e:
continue

View File

@ -1,4 +1,3 @@
limnoria > 2012.08.04 # Needs MultipleReplacer, from 1a64f105
psutil >= 3.1.0 # Fixes #640
ecdsa
pyxmpp2_scram