Make domain names str instead of bytes throughout the code, and only convert to bytes on serialization#1027
Merged
KPrasch merged 1 commit intonucypher:hawksbeardfrom May 30, 2019
Conversation
cf376a2 to
4e6782a
Compare
Codecov Report
@@ Coverage Diff @@
## hawksbeard #1027 +/- ##
============================================
- Coverage 81.1% 77.11% -4%
============================================
Files 67 67
Lines 8560 8559 -1
============================================
- Hits 6943 6600 -343
- Misses 1617 1959 +342
Continue to review full report at Codecov.
|
0022ab3 to
3175cb0
Compare
…nly convert to bytes on serialization Fixed nucypher#1026
3175cb0 to
a9622b8
Compare
str instead of bytes throughout the code, and only convert to bytes on serialization
KPrasch
reviewed
May 30, 2019
| else: | ||
|
|
||
| # Domains -> bytes | or default | ||
| domains = set(bytes(network, encoding='utf-8')) if network else None |
Member
There was a problem hiding this comment.
Wow - this was a horrendous bug. Nice Find!
KPrasch
approved these changes
May 30, 2019
This was referenced May 31, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1026