build: fix compatibility with python 3.6
authorHuangbin Zhan <zhanhb88@gmail.com>
Mon, 6 Jul 2020 23:14:42 +0000 (07:14 +0800)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 13 Jul 2020 20:24:30 +0000 (21:24 +0100)
commit9c0ad7f1d5e564420ae1e6493c2fc2622fd27c8c
tree4d79d6de6d83f773a54587ad783c40ca643198e1
parent78f57fbce61ca26a04d2fcab4887228290ee2303
build: fix compatibility with python 3.6

On a system python3 is linked to python3.6, fail to perform json_overview_image_info
 and got `TypeError: __init__() got an unexpected keyword argument 'capture_output'`.
This patch emulate the behaviour on python 3.7+.

Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
(cherry picked from commit 3caad5150c2011a7dac462acaa06d0e69f8ed005)
scripts/json_overview_image_info.py