[PATCH v15 10/11] app/test: replace .sh script with .py script

Thomas Monjalon thomas at monjalon.net
Tue Feb 8 13:03:21 CET 2022


26/01/2022 06:10, Jie Zhou:
> +    try:
> +        with open("/proc/sys/vm/nr_hugepages") as file_o:
> +            content = file_o.read()
> +            print(content)
> +    except:
> +            print("0")

flake8 says this line is over-indented, I will fix.

There is another warning that I won't fix:
app/test/has_hugepage.py:14:5: E722 do not use bare 'except'




More information about the dev mailing list