diff options
author | Eli Friedman <efriedma@quicinc.com> | 2024-05-23 10:35:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 10:35:53 -0700 |
commit | 779be6fd1d5a7b9b93654abb363c28e7ff51483e (patch) | |
tree | ec2f1e6373252b60959e4f5bf9af1f462497fc1c /llvm/utils/UpdateTestChecks/common.py | |
parent | d70cab4663f7893dce7e3be25b122e54a6b8deeb (diff) | |
download | llvm-779be6fd1d5a7b9b93654abb363c28e7ff51483e.zip llvm-779be6fd1d5a7b9b93654abb363c28e7ff51483e.tar.gz llvm-779be6fd1d5a7b9b93654abb363c28e7ff51483e.tar.bz2 |
Fix update-test-checks.py on Python 3.6 (#93116)
re.Match apparently doesn't exist in older versions.
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py index 7da16e0..85c1294 100644 --- a/llvm/utils/UpdateTestChecks/common.py +++ b/llvm/utils/UpdateTestChecks/common.py @@ -1041,7 +1041,7 @@ class NamelessValue: var = var.replace("-", "_") return var.upper() - def get_affixes_from_match(self, match: re.Match): + def get_affixes_from_match(self, match): prefix = re.match(self.ir_prefix, match.group(2)).group(0) suffix = re.search(self.ir_suffix + "$", match.group(2)).group(0) return prefix, suffix |