Skip to content

Conversation

@Flamefire
Copy link

When neither text nor encoding is specified to subprocess.run then stdout will be of type bytes.

A subsequent str(stdout) causes a BytesWarning which might result in errors, e.g. if python -bb is used.

This adds text=True and removes the now superflous decode and the faulty str calls

When neither `text` nor `encoding` is specified to `subprocess.run` then `stdout` will be of type `bytes`.

A subsequent `str(stdout)` causes a `BytesWarning` which might result in errors, e.g. if `python -bb` is used.
@github-actions
Copy link

github-actions bot commented Nov 1, 2025

This PR has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this PR if it is no longer required. Otherwise, please respond with a comment indicating any updates. This PR will be labeled inactive-90d if there is no activity in the next 60 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant