aports/community/py3-pyftpdlib/test-with-psutil-5.9.patch
2024-06-25 11:33:02 +00:00

15 lines
430 B
Diff

Method renamed: https://github.com/giampaolo/psutil/pull/2408
Remove this patch when upgrading to psutil 6.0
--- a/pyftpdlib/test/__init__.py
+++ b/pyftpdlib/test/__init__.py
@@ -379,7 +379,7 @@
if POSIX:
cons = [
x
- for x in this_proc.net_connections('tcp')
+ for x in this_proc.connections('tcp')
if x.status != psutil.CONN_CLOSE_WAIT
]
if cons: