[Lldb-commits] [lldb] [lldb-dap] Refactoring DebugCommunication to improve test consistency. (PR #143818)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 12 14:57:23 PDT 2025
================
@@ -76,26 +178,22 @@ def read_packet(f, verbose=False, trace_file=None):
if verbose:
print('length: "%u"' % (length))
# Skip empty line
- line = f.readline()
+ line = f.readline().decode()
if verbose:
print('empty: "%s"' % (line))
# Read JSON bytes
json_str = f.read(length)
if verbose:
- print('json: "%s"' % (json_str))
+ print('json: "%r"' % (json_str))
----------------
JDevlieghere wrote:
I think all supported Python versions now support f-strings.
```suggestion
print(f'json: "{json_str}"')
```
https://github.com/llvm/llvm-project/pull/143818
More information about the lldb-commits
mailing list