Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-19670: Added SimpleCookie.value_encode/value_decode docs#21017

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
idomic wants to merge6 commits intopython:main
base:main
Choose a base branch
Loading
fromidomic:bpo-19670-cookie

Conversation

idomic
Copy link
Contributor

@idomicidomic commentedJun 20, 2020
edited by bedevere-bot
Loading

SimpleCookie Generates Non-RFC6265-Compliant Cookies

[bpo-19670](https://bugs.python.org/issue19670): SimpleCookie Generates Non-RFC6265-Compliant Cookies
[3.7] Added SimpleCookie.value_encode/value_decode docs (GH-21017)[3.8] Added SimpleCookie.value_encode/value_decode docs (GH-21017)[3.9] Added SimpleCookie.value_encode/value_decode docs (GH-21017)[3.10] Added SimpleCookie.value_encode/value_decode docs (GH-21017)

https://bugs.python.org/issue19670

@idomicidomic changed the titleAdded SimpleCookie.value_encode/value_decode docsbpo-19670: Added SimpleCookie.value_encode/value_decode docsJun 20, 2020
@@ -605,8 +605,15 @@ class SimpleCookie(BaseCookie):
received from HTTP are kept as strings.
"""
def value_decode(self, val):
"""
Return an unquoted string, from the cookie header in a reversed fasion of value_encode.
Copy link
Contributor

Choose a reason for hiding this comment

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

To be consistent with other method documentation, could
you start write the docstring on the first line, please?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Done for both, thanks!

return _unquote(val), val

def value_encode(self, val):
"""
Return an escaped quoted string, if needed, for the cookie header usage.
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@eamanu fixed both doc strings

@serhiy-storchakaserhiy-storchaka added needs backport to 3.10only security fixes needs backport to 3.11only security fixes and removed needs backport to 3.9only security fixes labelsMay 20, 2022
@serhiy-storchakaserhiy-storchaka added needs backport to 3.12only security fixes needs backport to 3.13bugs and security fixes and removed needs backport to 3.10only security fixes needs backport to 3.11only security fixes labelsMay 9, 2024
@serhiy-storchakaserhiy-storchaka added the needs backport to 3.14bugs and security fixes labelMay 8, 2025
@ZeroIntensityZeroIntensity removed the needs backport to 3.12only security fixes labelMay 29, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@eamanueamanueamanu left review comments

Assignees
No one assigned
Labels
awaiting reviewneeds backport to 3.13bugs and security fixesneeds backport to 3.14bugs and security fixes
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

9 participants
@idomic@eamanu@ambv@taleinat@serhiy-storchaka@the-knights-who-say-ni@ezio-melotti@bedevere-bot@ZeroIntensity

[8]ページ先頭

©2009-2025 Movatter.jp