diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-01 00:11:27 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-01 00:11:27 +0300 |
commit | c11a4cb952835afda6161f6d63e1eded4381d5a0 (patch) | |
tree | caa2c549524f37e09f7b20e780fdd23d12fdd251 /mesonbuild/mesonlib.py | |
parent | c0ab6e9d5b9cb5e98d3d17eca42b9d596b873b0a (diff) | |
download | meson-c11a4cb952835afda6161f6d63e1eded4381d5a0.zip meson-c11a4cb952835afda6161f6d63e1eded4381d5a0.tar.gz meson-c11a4cb952835afda6161f6d63e1eded4381d5a0.tar.bz2 |
Make Interpreter object unpicklable as it was being pickled by accident in copies of kwargs.
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r-- | mesonbuild/mesonlib.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index 415bc50..bf6ba98 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -21,6 +21,11 @@ import collections from glob import glob +# Put this in objects that should not get dumped to pickle files +# by accident. +import threading +an_unpicklable_object = threading.Lock() + class MesonException(Exception): '''Exceptions thrown by Meson''' |