[libcxx-commits] [libcxx] [llvm] [LIT] remove `to_unicode`, `to_string`, and `to_bytes` helpers (PR #165950)
Alexander Richardson via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 3 05:36:25 PST 2025
================
@@ -43,7 +43,7 @@ def get_num_tests(self, path, litConfig, localConfig):
return None
return sum(
map(
- lambda line: lit.util.to_string(line).startswith(" "),
+ lambda line: line.decode("utf-8", errors="replace").startswith(" "),
----------------
arichardson wrote:
Can't we just use bytes here?
```suggestion
lambda line: line.startswith(b" "),
```
https://github.com/llvm/llvm-project/pull/165950
More information about the libcxx-commits
mailing list