Skip to content

fix(hlpr): pass the end keyword of lob_print to print - #23

Merged
MrKevinWeiss merged 1 commit into
masterfrom
fix/lob-print-end
Sep 30, 2026
Merged

MrKevinWeiss merged 1 commit into
masterfrom
fix/lob-print-end

Conversation

@MrKevinWeiss

Copy link
Copy Markdown
Collaborator

lob_print popped end before calling _print_color, despite the comment saying it is "consumed by print", so lob_print(path, "x", end="") still printed "x\n". It now stays in the kwargs that reach print; the log file side never used it.

New test (plain and colored) fails on master.

🤖 Generated with Claude Code

lob_print popped end before printing, so lob_print(path, "x", end="")
still printed a newline. Leave it in the print kwargs; the log file
side never used it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@MrKevinWeiss MrKevinWeiss left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this be an unexpect kwarg for logging and we get an error?

@MrKevinWeiss

Copy link
Copy Markdown
Collaborator Author

No: lob_print only hands the remaining kwargs to _print_color, which passes them to print. The logger gets logger.info("%s", line) built from sep.join(args), so end never reaches logging. The test covers both the plain and the colored print path.

@MrKevinWeiss
MrKevinWeiss merged commit b03040b into master Sep 30, 2026
6 checks passed
@MrKevinWeiss
MrKevinWeiss deleted the fix/lob-print-end branch September 30, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant