Skip to content

Commit 779be6f

Browse files
Fix update-test-checks.py on Python 3.6 (#93116)
re.Match apparently doesn't exist in older versions.
1 parent d70cab4 commit 779be6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/UpdateTestChecks/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ def get_value_name(self, var: str, check_prefix: str):
10411041
var = var.replace("-", "_")
10421042
return var.upper()
10431043

1044-
def get_affixes_from_match(self, match: re.Match):
1044+
def get_affixes_from_match(self, match):
10451045
prefix = re.match(self.ir_prefix, match.group(2)).group(0)
10461046
suffix = re.search(self.ir_suffix + "$", match.group(2)).group(0)
10471047
return prefix, suffix

0 commit comments

Comments
 (0)