Home GnuPG

python: Don't call __del__ from __exit__ method.

Description

python: Don't call del from exit method.

* lang/python/src/core.py (Context, Data): Don't call __del__
from __exit__ method, as the object may be still in use.
* lang/python/tests/t-idiomatic.py: Fix the test.
  • GnuPG-bug-id: T6060
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Aug 9 2022, 2:36 AM
Parents
rGPGMEPYa776c7e32bd5: python: Don't access gpgme with wrapped=None.
Branches
Unknown
Tags
Unknown
References
tag: gpgme-1.18.0

Event Timeline