-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fix deprecation warnings #38
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1f2f105
Fix StopIteration deprecation warning
andbag 4d3d01d
Fix deprecation warnings & flake8
andbag 0ad2949
flake8
andbag e0984b1
Fix security decorators
andbag b7a39e7
Fix deprecated 'warn' method
andbag 255fe5f
Remove redundant code
andbag 530180d
flake8 & coverage
andbag 0eb7c21
Fix superfluous %
andbag f40323a
Replace assertTrue(A not in B) with assertNotIn(A, B)
andbag 5b3d77b
Replace assertTrue(A in B) with assertIn(A, B)
andbag 7a2e3d4
Replace assertFalse(A in B) with assertNotIn(A, B)
andbag bad4ff4
Replace assertEqual(A not in B, True) with assertNotIn(A, B)
andbag 3b2504d
Append variable data as arguments for logging format string
andbag 1b71cc3
Fix for easier reading
andbag dcbf330
Use urlencode for redirect url
andbag 356426c
Fix remaining PR comments.
f9543d5
Add flake8 check and flake8 the code.
14a77fa
Require minimum coverage.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I do not understand, why this method used to set
_misses
and_hits
, but does not need it anymore. As it seems to be actually a tool for testing, it should be fine, if nothing breaks.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.
The "get" method now calls the"getitem" method (see self[key]), which still sets the variables"_hits" and"_misses". Other tests using the method will therefore continue to work.