From 04238fa5e5b9b13abe4a9f808172b1978d26fe75 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 9 Aug 2018 09:48:17 +1000 Subject: [PATCH] docs: Python 3 Sphinx compatibility --- docs/conf_common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/conf_common.py b/docs/conf_common.py index ec9196992d..be7b86ffd1 100644 --- a/docs/conf_common.py +++ b/docs/conf_common.py @@ -41,11 +41,11 @@ copy_if_modified('xml/', 'xml_in/') os.system('python ../gen-dxd.py') # Generate 'kconfig.inc' file from components' Kconfig files -print "Generating kconfig.inc from kconfig contents" +print("Generating kconfig.inc from kconfig contents") kconfig_inc_path = '{}/inc/kconfig.inc'.format(builddir) temp_sdkconfig_path = '{}/sdkconfig.tmp'.format(builddir) -kconfigs = subprocess.check_output(["find", "../../components", "-name", "Kconfig"]) -kconfig_projbuilds = subprocess.check_output(["find", "../../components", "-name", "Kconfig.projbuild"]) +kconfigs = subprocess.check_output(["find", "../../components", "-name", "Kconfig"]).decode() +kconfig_projbuilds = subprocess.check_output(["find", "../../components", "-name", "Kconfig.projbuild"]).decode() confgen_args = ["python", "../../tools/kconfig_new/confgen.py", "--kconfig", "../../Kconfig", -- 2.40.0