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

Add __delitem__ #224

Merged
merged 2 commits into from
Nov 8, 2018
Merged

Add __delitem__ #224

merged 2 commits into from
Nov 8, 2018

Conversation

viljoviitanen
Copy link
Contributor

Issue #223
A separate travis-ci run that shows the test first failing without implementation:
https://travis-ci.org/viljoviitanen/fakeredis/builds/452512706

Also to make things sure: I allow my small contribution to be distributed under any licence and assign copyright to current copyright owners.

Copy link
Collaborator

@bmerry bmerry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good thanks, just the one change I'd suggest.

fakeredis.py Outdated
@@ -980,6 +980,10 @@ def delete(self, *names):
continue
return deleted

@_locked
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.delete already takes the lock, so it's unnecessary for this function to be locked.

@coveralls
Copy link

coveralls commented Nov 8, 2018

Coverage Status

Coverage increased (+0.002%) to 98.157% when pulling 49f6f7a on viljoviitanen:del into aa6a0d6 on jamesls:master.

@viljoviitanen
Copy link
Contributor Author

Force pushed a commit without the unnecessary @_locked decorator.

@bmerry bmerry merged commit da948fd into jamesls:master Nov 8, 2018
@bmerry
Copy link
Collaborator

bmerry commented Nov 8, 2018

Thanks, merged!

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