Skip to content
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

fix: resolve deanmalmgren#342 #8

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

KyleKing
Copy link
Owner

@KyleKing KyleKing commented Dec 3, 2024

From: deanmalmgren#422

Clarification, _getStringStream should return unicode in Python 2, str in Python 3, IF the stream requested exists. If it does not exist, it returns None, which cannot be added to bytes. This commit adds a check for None, returning an empty bytes string if matched.

Fixes: deanmalmgren#342

Clarification, _getStringStream *should* return `unicode` in Python 2, `str` in Python 3, IF the stream requested exists. If it does not exist, it returns `None`, which cannot be added to bytes. This commit adds a check for None, returning an empty bytes string if matched.
@KyleKing KyleKing self-assigned this Dec 3, 2024
@KyleKing KyleKing changed the base branch from master to main December 3, 2024 13:34
@KyleKing KyleKing marked this pull request as ready for review December 4, 2024 11:05
@KyleKing KyleKing merged commit 5b55f5c into KyleKing:main Dec 4, 2024
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.

unsupported operand type(s) for +: 'NoneType' and 'bytes'
2 participants