From 5a1f98b0e46d0077f777cb90e7d9d916c9186535 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 6 Sep 2021 11:38:59 -0400 Subject: Fix some unnecessary checks for handle is not None in destructors --- python/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/settings.py') diff --git a/python/settings.py b/python/settings.py index b508e863..7297f157 100644 --- a/python/settings.py +++ b/python/settings.py @@ -137,7 +137,7 @@ class Settings: self.handle = _handle def __del__(self): - if self.handle is not Settings.default_handle and self.handle is not None: + if self.handle is not Settings.default_handle: core.BNFreeSettings(self.handle) def __eq__(self, other): -- cgit v1.3.1