Merge pull request #737 from embray/patch-1

wolfcrypt Python: work around minor issue in Random.__del__
This commit is contained in:
Moisés Guimarães
2017-05-29 20:19:21 -03:00
committed by GitHub

View File

@ -39,7 +39,11 @@ class Random(object):
def __del__(self):
if self.native_object:
try:
_lib.wc_FreeRng(self.native_object)
except AttributeError:
# Can occur during interpreter shutdown
pass
def byte(self):