-
Notifications
You must be signed in to change notification settings - Fork 7
Fix writing of BytesIO data #310
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
Conversation
Reviewer's Guide by SourceryThis pull request fixes an issue with writing BytesIO data by ensuring that the buffer is written instead of the BytesIO object. In addition, it introduces minor log message changes and code style improvements in handling port encodings and argument parsing. No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @awicenec - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a test case that specifically covers the BytesIO encoding to prevent regressions.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
data = drop.read(desc) | ||
if data: |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look great @awicenec!
Type
Problem/Issue
This PR fixes an issue with the writing of BytesIO data, which can be selected as one of the port encodings. When trying to use that encoding the engine raised a TypeError Exception. The encoding was required to fix an issue with the wallaby_hires graphs.
Solution
The fix was very simply to write the buffer instead of the BytesIO object.
In addition a very small change of one of the log messages has been introduced as well.
Summary by Sourcery
Bug Fixes:
TypeError
exception when usingBytesIO
encoding, which was required to fix an issue with the wallaby_hires graphs.