-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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 duplicate cookie expiration calls in the CookieJar implementation #7784
Conversation
Marking as draft until #7777 merges as it will be much easier to rebase this PR vs that one |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7784 +/- ##
=======================================
Coverage 97.47% 97.47%
=======================================
Files 107 107
Lines 32590 32601 +11
Branches 3800 3801 +1
=======================================
+ Hits 31768 31779 +11
Misses 618 618
Partials 204 204
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Backport to 3.10: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply e8339e7 on top of patchback/backports/3.10/e8339e7687a6c228076f788237b6dbe95ae711e5/pr-7784 Backporting merged PR #7784 into master
🤖 @patchback |
…#7784) Co-authored-by: Sam Bull <[email protected]> (cherry picked from commit e8339e7)
…#7784) (#8047) Co-authored-by: Sam Bull <[email protected]>
What do these changes do?
_do_expiration
was already being calledfilter_cookies
because it iteratesself
which calls__iter__
which also calls_do_expiration
Calling
len()
on the cookie jar has the side of expiring stale cookies since it also called__iter__
Are there changes in behavior for the user?
Calling
len()
on the cookie jar no longer has the side effect of expiring stale cookies.Related issue number
Checklist
CONTRIBUTORS.txt
CHANGES
folder<issue_id>.<type>
for example (588.bugfix)issue_id
change it to the pr id after creating the pr.feature
: Signifying a new feature..bugfix
: Signifying a bug fix..doc
: Signifying a documentation improvement..removal
: Signifying a deprecation or removal of public API..misc
: A ticket has been closed, but it is not of interest to users.