python: Handle interpreter shutdown.
authorJustus Winter <justus@gnupg.org>
Thu, 12 May 2016 09:53:43 +0000 (11:53 +0200)
committerJustus Winter <justus@gnupg.org>
Thu, 12 May 2016 09:53:43 +0000 (11:53 +0200)
commitce5121ad53b0e17fbf9150b354c80da73f7fe190
tree8e167972020ad706bb2fdf913b14ab2a7ce9d6f2
parentc89d3a71ad20ff02755539a44f254b1e59054c4a
python: Handle interpreter shutdown.

* lang/python/pyme/core.py: Avoid races at interpreter shutdown.  This
silences the most annoying occurrences, however this problem also
affects the SWIG generated code, which might indicate that the real
problem is somewhere else.  If so, this change can be easily reverted.

Signed-off-by: Justus Winter <justus@gnupg.org>
lang/python/pyme/core.py