X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=debug%2Ftestlib.py;h=996c188efb8aff2a0c41e063cad437322b5361d9;hb=38fc7c6a96f47499b738835b0f01a42edf093d39;hp=3eeace91ff326600f51f2a77d59327cd95b39b01;hpb=910f39c9b46a883d58f0b77ae847c535834a48da;p=riscv-tests.git diff --git a/debug/testlib.py b/debug/testlib.py index 3eeace9..996c188 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -540,8 +540,7 @@ def header(title, dash='-', length=78): def print_log(path): header(path) - lines = open(path, "r").readlines() - for l in lines: + for l in open(path, "r"): sys.stdout.write(l) print