-
Notifications
You must be signed in to change notification settings - Fork 0
[IMP] Decode decryption response #10
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
* Add better documentation to `decrypt` * Decode aspects of the decrypt response to allow for more usable return
9731e30
to
3d9f7e2
Compare
Codecov Report
@@ Coverage Diff @@
## master #10 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 4 4
Lines 86 90 +4
Branches 3 3
=====================================
+ Hits 86 90 +4
Continue to review full report at Codecov.
|
* Use the status instead of the response on error
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.
LGTM, minus a minor question. If you don't want to change it, just let me know and I'll merge as is.
Thanks!
# Copyright 2016-2017 LasLabs Inc. | ||
# License MIT (https://opensource.org/licenses/MIT). | ||
|
||
import json |
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.
Why import the entire library instead of what you're using? :)
from json import loads
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.
Shitty namespace of loads
and dumps
basically. import json.loads
doesn't work either 😦
>>> import json.loads
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named loads
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.
That's (sadpanda)
# Copyright 2016-2017 LasLabs Inc. | ||
# License MIT (https://opensource.org/licenses/MIT). | ||
|
||
import json |
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.
Same here, why not just import dumps
?
decrypt