Skip to content

Commit 4589289

Browse files
committed
fix: FormatReporter was mutating results.
Somewhere along the way in python land, vars turned into a view- not a copy. Thus the problem. Signed-off-by: Brian Harring <ferringb@gmail.com>
1 parent 7bde46c commit 4589289

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pkgcheck/reporters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def _consume_reports_generator(self) -> T_process_report:
283283

284284
while True:
285285
result = yield
286-
attrs = vars(result)
286+
attrs = vars(result).copy()
287287
attrs.update((k, getattr(result, k)) for k in properties)
288288
s = formatter.format(self.format_str, **attrs)
289289
# output strings with at least one valid expansion or non-whitespace character

0 commit comments

Comments
 (0)