We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a62e9c5 commit f7204c8Copy full SHA for f7204c8
contrib/pyln-testing/pyln/testing/gossip.py
@@ -16,7 +16,13 @@ def __init__(self, path: Path):
16
self.path = path
17
self.log = logging.getLogger("GossipStore")
18
19
+ def __del__(self):
20
+ if self.fd is not None:
21
+ self.fd.close()
22
+
23
def open(self):
24
25
26
self.fd = self.path.open(mode="rb")
27
self.version = ord(self.fd.read(1))
28
if self.version < 3:
0 commit comments