[clang] [clang][Python] Use fstrings instead of string concatenations (PR #173861)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 13 13:58:40 PST 2026
================
@@ -563,7 +563,7 @@ def __init__(self, range, value):
self.value = value
def __repr__(self):
- return f"<FixIt range {self.range!r}, value {self.value!r}>"
+ return "<FixIt range {}, value {}>".format(self.range, self.value)
----------------
mikomikotaishi wrote:
My mistake. I mistakenly believed `str.format()` would use `repr()` implicitly, but it apparently does not. I'll fix that
https://github.com/llvm/llvm-project/pull/173861
More information about the cfe-commits
mailing list