aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-07-01 00:11:27 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-07-01 00:11:27 +0300
commitc11a4cb952835afda6161f6d63e1eded4381d5a0 (patch)
treecaa2c549524f37e09f7b20e780fdd23d12fdd251 /mesonbuild/mesonlib.py
parentc0ab6e9d5b9cb5e98d3d17eca42b9d596b873b0a (diff)
downloadmeson-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.py5
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'''