Fix python lints

Signed-off-by: Bartłomiej Chmiel <bchmiel@antmicro.com>
This commit is contained in:
Bartłomiej Chmiel 2025-12-11 16:13:58 +01:00
parent 6984f306ac
commit 5ec6570fe7
No known key found for this signature in database
GPG Key ID: AF7A8DBF070764A4
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ trace_chg_file = test.obj_dir + "/" + test.vm_prefix + "__Trace__0.cpp"
if test.vlt_all:
if os.path.exists(trace_full_file):
with open(trace_full_file, 'r') as f:
with open(trace_full_file, 'r', encoding="utf-8") as f:
trace_content = f.read()
# Search for inlined expressions, e.g.: bufp->fullBit(oldp+X,((1U & (~ (IData)(vlSelfRef.clk)))));
@ -78,7 +78,7 @@ if test.vlt_all:
# Check `chg` functions
if os.path.exists(trace_chg_file):
with open(trace_chg_file, 'r') as f:
with open(trace_chg_file, 'r', encoding='utf-8') as f:
trace_chg_content = f.read()
# Search for inlined expressions, e.g.: chgBit(oldp+X,((1U & (~ ...))))