clean up unused Python imports (#454)
* Remove unused python imports These changes have been auto-generated with: pip3 install isort autoflake isort -rc -sl . autoflake --remove-all-unused-imports -i -r . isort -rc -m 3 . Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org> * python: remove redundant parenthesis Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
committed by
GitHub
parent
50f397b249
commit
d84179e42f
@@ -14,6 +14,8 @@
|
||||
#
|
||||
|
||||
import psutil
|
||||
|
||||
|
||||
def check_listening_on_port(port):
|
||||
for c in psutil.net_connections(kind='inet'):
|
||||
if c.status == 'LISTEN' and c.laddr[1] == port:
|
||||
|
||||
Reference in New Issue
Block a user