Skip to content

Commit

Permalink
Add fixes for syntax warnings in numba/misc.
Browse files Browse the repository at this point in the history
As title.
  • Loading branch information
stuartarchibald committed Dec 5, 2023
1 parent c1715e0 commit b32b682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion numba/misc/gdb_print_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def to_string(self):
# NOTE: need to deal with "Alignment" else dtype size is wrong
arr_info = [x.strip() for x in matcher.match(ty_str).groups()]
dtype_str, ndim_str, order_str = arr_info
rstr = 'Record\\((.*\\[.*\\]);([0-9]+);(True|False)'
rstr = r'Record\((.*\[.*\]);([0-9]+);(True|False)'
rstr_match = re.match(rstr, dtype_str)
# balign is unused, it's the alignment
fields, balign, is_aligned_str = rstr_match.groups()
Expand Down
2 changes: 1 addition & 1 deletion numba/misc/llvm_pass_timings.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def parse(raw_data):
else:
attrs.append(f"{k}_time")
attrs.append(f"{k}_percent")
pat += f"\\s+(?:{n}\\s*\\({n}%\\)|-+)"
pat += rf"\s+(?:{n}\s*\({n}%\)|-+)"

# put default value 0.0 to all missing attributes
missing = {}
Expand Down

0 comments on commit b32b682

Please sign in to comment.