[dpdk-dev] [PATCH v7 05/10] app/test-cmdline: support python3 only

Robin Jarry robin.jarry at 6wind.com
Fri Sep 25 16:52:51 CEST 2020


Hi Kevin, all,

2020-09-21, Kevin Laatz:
> Changed script to explicitly use python3 only to avoid
> maintaining python 2 and removed deprecation notice.
> 
> Cc: Olivier Matz <olivier.matz at 6wind.com>
> 
> Signed-off-by: Louise Kilheeney <louise.kilheeney at intel.com>
> Signed-off-by: Kevin Laatz <kevin.laatz at intel.com>
> Reviewed-by: Bruce Richardson <bruce.richardson at intel.com>
[snip]
> @@ -43,7 +38,7 @@ def runHistoryTest(child):
>      i = 0
>  
>      # fill the history with numbers
> -    while i < history_size / 10:
> +    while i < int(history_size / 10):
>          # add 1 to prevent from parsing as octals
>          child.send("1" + str(i).zfill(8) + cmdline_test_data.ENTER)
>          # the app will simply print out the number

It would be better to use the integer division operator: //

-- 
Robin


More information about the dev mailing list