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

Prevent AttributeDict() from modifying its input #48

Merged
merged 1 commit into from Mar 9, 2020

Conversation

mweber-qvantel
Copy link
Contributor

AttributeDict .pop() its “data” argument. This is fine when “data” is the top-level argument, but since the method is calling itself recursively, it modifies the objects that are values of the top-level argument, and that modifies data that the caller of jsonapi-client does not expect to be modified.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 87.973% when pulling 75b6f9d on mweber-qvantel:master into 0e44a49 on qvantel:master.

@mweber-qvantel mweber-qvantel merged commit 298418b into qvantel:master Mar 9, 2020
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.

None yet

3 participants