From: Haojian Zhuang <haojian.zhuang@linaro.org> python2 is decrepated in some OS releases. Upgrade the script to python3. Since division is always return with float type in python3, force to use '//'. It could return with int type. Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org> --- test/list_loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/list_loader.py b/test/list_loader.py index 7421158..a9da78d 100755 --- a/test/list_loader.py +++ b/test/list_loader.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #-*- coding: utf-8 -*- import os @@ -20,7 +20,7 @@ class listcontent(object): def deflate(self, blk_sz): ifile_sz = os.path.getsize(self.ifile_nm) - count = (ifile_sz + int(blk_sz) - 1) / int(blk_sz) + count = (ifile_sz + int(blk_sz) - 1) // int(blk_sz) # Create array data = np.ndarray(count * 3, dtype=np.uint64) i = 0 -- 2.33.0