Assign local variable for easier debugging

This commit is contained in:
Klaas van Schelven
2025-11-08 20:37:51 +01:00
parent 6a37cefc09
commit 1aa8e95892

View File

@@ -184,7 +184,8 @@ class StreamingEnvelopeParser:
should_be_empty = io.BytesIO()
self.remainder, self.at_eof = readuntil(
self.input_stream, self.remainder, NewlineFinder(), should_be_empty, self.chunk_size)
if should_be_empty.getvalue() != b"":
should_be_empty_value = should_be_empty.getvalue()
if should_be_empty_value != b"":
raise ParseError("Item with explicit length not terminated by newline/EOF")
yield item_headers, item_output_stream