Skip to content

Conversation

lasley
Copy link
Member

@lasley lasley commented Apr 7, 2017

  • Add better documentation to decrypt
  • Decode aspects of the decrypt response to allow for more usable return

@lasley lasley added this to the 0.2.0 milestone Apr 7, 2017
@lasley lasley requested a review from tedsalmon April 7, 2017 17:36
* Add better documentation to `decrypt`
* Decode aspects of the decrypt response to allow for more usable return
@lasley lasley force-pushed the feature/master/decode-decrypt-response branch from 9731e30 to 3d9f7e2 Compare April 7, 2017 17:37
@codecov-io
Copy link

codecov-io commented Apr 7, 2017

Codecov Report

Merging #10 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #10   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           4      4           
  Lines          86     90    +4     
  Branches        3      3           
=====================================
+ Hits           86     90    +4
Impacted Files Coverage Δ
red_october/red_october.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b28402...3aa7cfc. Read the comment docs.

* Use the status instead of the response on error
Copy link
Contributor

@tedsalmon tedsalmon left a 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
Copy link
Contributor

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

Copy link
Member Author

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

Copy link
Contributor

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
Copy link
Contributor

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?

@tedsalmon tedsalmon merged commit 7fd3bb1 into master Apr 11, 2017
@tedsalmon tedsalmon deleted the feature/master/decode-decrypt-response branch April 11, 2017 00:49
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.

3 participants