aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-08-31 11:07:46 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-08-31 16:59:37 -0700
commitbd691b847c2cb6cbea3450a8749bcc1a67c295e7 (patch)
tree6a2b19d2f8489e57b209116951b54b9fc602aa4a /mesonbuild/mesonlib
parent042016a5556010b94364fc90280287cf9355c13b (diff)
downloadmeson-bd691b847c2cb6cbea3450a8749bcc1a67c295e7.zip
meson-bd691b847c2cb6cbea3450a8749bcc1a67c295e7.tar.gz
meson-bd691b847c2cb6cbea3450a8749bcc1a67c295e7.tar.bz2
interpreter: use python dunders instead of lock for unpicklability
This simplifies things for us, as we don't have to have threading imported for no other reason, and we can remove the `an_unpicklable_object` from the Interpreter and mesonlib, since there was only one user of this.
Diffstat (limited to 'mesonbuild/mesonlib')
-rw-r--r--mesonbuild/mesonlib/universal.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/mesonbuild/mesonlib/universal.py b/mesonbuild/mesonlib/universal.py
index 63e754b..06b8adf 100644
--- a/mesonbuild/mesonlib/universal.py
+++ b/mesonbuild/mesonlib/universal.py
@@ -44,7 +44,6 @@ _U = T.TypeVar('_U')
__all__ = [
'GIT',
- 'an_unpicklable_object',
'python_command',
'project_meson_versions',
'HoldableObject',
@@ -265,12 +264,6 @@ def check_direntry_issues(direntry_array: T.Union[T.List[T.Union[str, bytes]], s
not pure ASCII. This may cause problems.
'''), file=sys.stderr)
-
-# Put this in objects that should not get dumped to pickle files
-# by accident.
-import threading
-an_unpicklable_object = threading.Lock()
-
class HoldableObject(metaclass=abc.ABCMeta):
''' Dummy base class for all objects that can be
held by an interpreter.baseobjects.ObjectHolder '''