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

Various simplification of the code #24

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

baryluk
Copy link

@baryluk baryluk commented Dec 11, 2019

This reduces amount of code, adds / fixes few comments here and there, and uses less fragile constructs.

Simplify the main code. It is still functionally identical, just with a bit less tokens and special cases.
It is just easier to read with less special cases, ifs, ors, ands, and updates.

Use more idiomatic and shorter constructs.
Missed in previous commit
This includes making default of resource_endpoint be empty string. It can't be None.
No need for temporary dicts.

req in transport_query must be done after url manipulations!
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.

1 participant