| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request. |
Sorry, something went wrong.
|
Please, do not update your branch if there is no need to. Please read https://devguide.python.org/getting-started/pull-request-lifecycle/ before doing future contributions. |
Sorry, something went wrong.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
|
Thanks for making the requested changes! @picnixz: please review the changes made to this pull request. |
Sorry, something went wrong.
|
Please let me know if there are any further suggestions or changes needed. |
Sorry, something went wrong.
Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
I have made the requested changes; please review again |
Sorry, something went wrong.
|
Thanks for making the requested changes! @picnixz: please review the changes made to this pull request. |
Sorry, something went wrong.
|
Nothing to do on your side! Don't update your branch since there won't be a need to, I'll just wait a few days before alpha closes to merge this. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM!
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. 👍
Sorry, something went wrong.
|
Sorry for being late to the party, but, IMO Morsel.js_output should be deprecated as well -- it has exactly the same issues. |
Sorry, something went wrong.
|
Hey, quick question — should I include this change in the current PR, or would you prefer I open a separate PR specifically for the Morsel.js_output update? |
Sorry, something went wrong.
|
I'd prefer here since they're so related. |
Sorry, something went wrong.
|
I have made the requested changes; please review again. As suggested by @encukou, I’ve deprecated Morsel.js_output(). The implementation now routes through Morsel.js_output(), so the deprecation warning is emitted only once. Note on stacklevel: |
Sorry, something went wrong.
|
Thanks for making the requested changes! @picnixz, @StanFromIreland, @serhiy-storchaka: please review the changes made to this pull request. |
Sorry, something went wrong.
Documentation build overview40 files changed · ± 40 modified ± Modified |
Sorry, something went wrong.
There was a problem hiding this comment.
To avoid multiple deprecation warnings from internal use, you can add private Morsel._js_output and use it in BaseCookie.js_output and Morsel.js_output after emitting a warning.
You can use self.assertEqual(cm.filename, __file__) to assert that the warning points to the correct calling place.
Sorry, something went wrong.
|
@serhiy-storchaka Thank you so much for the suggestion! |
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
gh-148849: Deprecate http.cookies.BaseCookie.js_output()
I didn’t see anyone assigned to this issue, so I tried working on it. I’m new to open source contributions, so please let me know if anything should be done differently.
This deprecates BaseCookie.js_output() as discussed in the issue. The method seems to be unused and tied to older browser behavior that isn’t really relevant anymore.
I added a deprecation decorator to the method, updated the existing tests to expect a DeprecationWarning, and updated the docs along with a NEWS entry.
I ran test_http_cookies locally — all tests pass (33 tests, 1 skipped):
I also checked that calling js_output() raises the warning while still returning the same result.
I left Morsel.js_output() unchanged since the issue only mentions BaseCookie.js_output(), but I can update that too if needed.
Would appreciate a review whenever you get a chance. Thanks!
Fixes gh-148849
📚 Documentation preview 📚: https://cpython-previews--148978.org.readthedocs.build/