[PATCH] doc/dts_gsg/conf.py: Fix python2 completely removes the legacy historical problems.

Chenyu Huang chenyux.huang at intel.com
Fri Jan 13 15:30:36 CET 2023


Signed-off-by: Chenyu Huang <chenyux.huang at intel.com>
---
 doc/dts_gsg/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/dts_gsg/conf.py b/doc/dts_gsg/conf.py
index 6356b370..6302ef25 100644
--- a/doc/dts_gsg/conf.py
+++ b/doc/dts_gsg/conf.py
@@ -16,7 +16,7 @@ project = "DPDK Test Suite"
 copyright = "2017, dpdk.org"
 
 strip_version_cmd = (
-    "import sys;sys.path.append('../..');import version; print version.dts_version()"
+    "import sys;sys.path.append('../..');import version; print(version.dts_version())"
 )
 version = subprocess.check_output(["python", "-c", strip_version_cmd])
 version = version.decode("utf-8").rstrip()
-- 
2.25.1



More information about the dts mailing list