aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mparser.py
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2016-11-30 14:26:25 -0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-12-03 22:35:29 +0200
commit6c9f75f082b20333aca2fb9064c4b6d32da29612 (patch)
treebeb2d4ffea7c89c2e3124ce244960a278b339129 /mesonbuild/mparser.py
parente1c9d94708fe4b13986fa61aa3fa308f3b6e8a70 (diff)
downloadmeson-6c9f75f082b20333aca2fb9064c4b6d32da29612.zip
meson-6c9f75f082b20333aca2fb9064c4b6d32da29612.tar.gz
meson-6c9f75f082b20333aca2fb9064c4b6d32da29612.tar.bz2
mintro: Allow serializing EnvironmentVariables objects
Otherwise trying to introspect tests might lead to: Traceback (most recent call last): File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonintrospect.py", line 20, in <module> sys.exit(mintro.run(sys.argv[1:])) File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonbuild/mintro.py", line 213, in run list_tests(testdata) File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonbuild/mintro.py", line 178, in list_tests print(json.dumps(result)) File "/usr/lib/python3.5/json/__init__.py", line 230, in dumps return _default_encoder.encode(obj) File "/usr/lib/python3.5/json/encoder.py", line 198, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python3.5/json/encoder.py", line 256, in iterencode return _iterencode(o, 0) File "/usr/lib/python3.5/json/encoder.py", line 179, in default raise TypeError(repr(o) + " is not JSON serializable") TypeError: <mesonbuild.build.EnvironmentVariables object at 0x7f83e8fa8c18> is not JSON serializable
Diffstat (limited to 'mesonbuild/mparser.py')
0 files changed, 0 insertions, 0 deletions