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

Message ID 20230113143036.293177-1-chenyux.huang@intel.com (mailing list archive)
State Accepted
Headers
Series doc/dts_gsg/conf.py: Fix python2 completely removes the legacy historical problems. |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test warning SKIPPED

Commit Message

Huang, ChenyuX Jan. 13, 2023, 2:30 p.m. UTC
  Signed-off-by: Chenyu Huang <chenyux.huang@intel.com>
---
 doc/dts_gsg/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Tu, Lijuan Jan. 13, 2023, 8:03 a.m. UTC | #1
> -----Original Message-----
> From: Huang, ChenyuX <chenyux.huang@intel.com>
> Sent: Friday, January 13, 2023 10:31 PM
> To: dts@dpdk.org
> Cc: Tu, Lijuan <lijuan.tu@intel.com>; Sun, QingX <qingx.sun@intel.com>; Huang,
> ChenyuX <chenyux.huang@intel.com>; Gao, DaxueX <daxuex.gao@intel.com>
> Subject: [PATCH] doc/dts_gsg/conf.py: Fix python2 completely removes the
> legacy historical problems.
> 
> Signed-off-by: Chenyu Huang <chenyux.huang@intel.com>

Applied with comment changed.

thanks
  

Patch

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()