Skip to content

Commit 99389dd

Browse files
authored
sshfs: make _finalize method static to allow garbage collection (#62)
1 parent 5c32631 commit 99389dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sshfs/spec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ async def _connect(
100100

101101
connect = sync_wrapper(_connect)
102102

103-
async def _finalize(self, pool, stack):
103+
@staticmethod
104+
async def _finalize(pool, stack):
104105
await pool.close()
105106

106107
# If an error occurs while the SSHFile is trying to

0 commit comments

Comments
 (0)