Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.

Commit 6e8ba59

Browse files
author
Dominik Neise
committed
fix instance down counting
1 parent bfa62f6 commit 6e8ba59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

protozfits/simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __exit__(self, type, value, tb):
4040
self.close()
4141

4242
def close(self):
43-
File.instances = 0
43+
File.instances -= 1
4444

4545
def __del__(self):
4646
self.close()

0 commit comments

Comments
 (0)