diff options
| author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-09-11 23:21:34 +0530 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-09-11 23:50:12 +0300 |
| commit | b3c70f495b736ff4ebe4c5097df2a5da0ea1ab80 (patch) | |
| tree | 4b6a7c93a4ad59db6a269c2d07197d98a28da4a4 /mesonbuild/mesonlib.py | |
| parent | 77bf63d6638cdb3f659cc97179e27d96a85c25a6 (diff) | |
| download | meson-b3c70f495b736ff4ebe4c5097df2a5da0ea1ab80.tar.gz | |
interpreter: Always flatten when unholding arrays
Otherwise we might end up with wrapper holders in the Build object and
pickling will then fail, defeating the purpose of the holder objects.
Closes https://github.com/mesonbuild/meson/issues/2211
Diffstat (limited to 'mesonbuild/mesonlib.py')
| -rw-r--r-- | mesonbuild/mesonlib.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index 305f60078..4862e23e6 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -707,6 +707,7 @@ def windows_proof_rmtree(f): def unholder_array(entries): result = [] + entries = flatten(entries) for e in entries: if hasattr(e, 'held_object'): e = e.held_object |
