Skip to content

port_dml: Convert sys.stderr.write to print #374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aeliasso
Copy link
Contributor

@aeliasso aeliasso commented Jun 5, 2025

It's easy to forget the trailing newline character when using sys.stderr.write and there are some such cases. Fix by converting all of them to print calls with file=sys.stderr instead. Replace printf-style format strings with modern f-string formatting to make it more beautiful.

@aeliasso aeliasso force-pushed the aeliasso-port-dml-syswrite-to-print branch from b3a124f to d92e564 Compare June 5, 2025 10:00
It's easy to forget the trailing newline character when using
sys.stderr.write and there are some such cases. Fix by converting all of
them to print calls with file=sys.stderr instead. Replace printf-style
format strings with modern f-string formatting to make it more
beautiful.
@aeliasso aeliasso force-pushed the aeliasso-port-dml-syswrite-to-print branch from d92e564 to 9d21bf6 Compare June 5, 2025 13:23
@aeliasso aeliasso requested a review from mandolaerik June 5, 2025 13:26
@syssimics
Copy link
Contributor

PR Verification: ❌ failure

@mandolaerik
Copy link
Contributor

verification failure is windows hiccup.

@mandolaerik mandolaerik marked this pull request as ready for review June 5, 2025 20:12
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.

3 participants