René's URL Explorer Experiment


Title: gh-134152: Fix UnboundLocalError in email._header_value_parser _get_ptext_to_endchars by bitdancer · Pull Request #134233 · python/cpython · GitHub

Open Graph Title: gh-134152: Fix UnboundLocalError in email._header_value_parser _get_ptext_to_endchars by bitdancer · Pull Request #134233 · python/cpython

X Title: gh-134152: Fix UnboundLocalError in email._header_value_parser _get_ptext_to_endchars by bitdancer · Pull Request #134233 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Fix an UnboundLocalError that can occur when parsing certain delimited constructs in headers (domain literals, quoted strings, comments). After the fix the _get_ptext_to_endchars returns an empty ...

X Description: Fix an UnboundLocalError that can occur when parsing certain delimited constructs in headers (domain literals, quoted strings, comments). After the fix the _get_ptext_to_endchars returns an empty ...

Opengraph URL: https://github.com/python/cpython/pull/134233

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:881ca45a-a055-ae68-6b81-0abfb4174c4e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD84E:323204:1D807B7:26D1862:6B022C4F
html-safe-noncec7c08cb33bdf20c49e3b53b4ff485a84cdad431ad0fbb2c62210dc5d532cdb38
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODRFOjMyMzIwNDoxRDgwN0I3OjI2RDE4NjI6NkIwMjJDNEYiLCJ2aXNpdG9yX2lkIjoiMjYxNTgzNjIzNTU1NzY0NTM5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4468827eb560fbff3322168f928210db25d3a2839bbf6669a491e8711b26d02c
hovercard-subject-tagpull_request:2528967808
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/134233/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/915aa191f140856d7e2e3ccd55943dffa570d0aab2b850269b72df428e02ed91/python/cpython/pull/134233
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/915aa191f140856d7e2e3ccd55943dffa570d0aab2b850269b72df428e02ed91/python/cpython/pull/134233
og:image:altFix an UnboundLocalError that can occur when parsing certain delimited constructs in headers (domain literals, quoted strings, comments). After the fix the _get_ptext_to_endchars returns an empty ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebitdancer
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/134233#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F134233
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F134233
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/134233
Reloadhttps://github.com/python/cpython/pull/134233
Reloadhttps://github.com/python/cpython/pull/134233
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
bitdancerhttps://github.com/bitdancer
python:mainhttps://github.com/python/cpython/tree/main
bitdancer:get_ptext_to_endchars_pos_errorhttps://github.com/bitdancer/cpython/tree/get_ptext_to_endchars_pos_error
Conversationhttps://github.com/python/cpython/pull/134233
Commits4 (4)https://github.com/python/cpython/pull/134233/commits
Checkshttps://github.com/python/cpython/pull/134233/checks
Files changedhttps://github.com/python/cpython/pull/134233/files
gh-134152: Fix UnboundLocalError in email._header_value_parser _get_ptext_to_endcharshttps://github.com/python/cpython/pull/134233#top
bitdancerhttps://github.com/bitdancer
python:mainhttps://github.com/python/cpython/tree/main
bitdancer:get_ptext_to_endchars_pos_errorhttps://github.com/bitdancer/cpython/tree/get_ptext_to_endchars_pos_error
https://github.com/bitdancer
bitdancerhttps://github.com/bitdancer
May 19, 2025https://github.com/python/cpython/pull/134233#issue-3074108385
Please reload this pagehttps://github.com/python/cpython/pull/134233
UnboundLocalError in email._header_value_parser.parse_message_id #134152https://github.com/python/cpython/issues/134152
Please reload this pagehttps://github.com/python/cpython/pull/134233
bitdancerhttps://github.com/bitdancer
May 19, 2025 10:36https://github.com/python/cpython/pull/134233#commits-pushed-f5c4008
https://github.com/bitdancer
Tests for empty delimited content.https://github.com/python/cpython/pull/134233/commits/f5c40081b21c5931da82c0b2a80ff9b261d26f21
f5c4008https://github.com/python/cpython/pull/134233/commits/f5c40081b21c5931da82c0b2a80ff9b261d26f21
https://github.com/bitdancer
Fix test failures for missing ending delimiters.https://github.com/python/cpython/pull/134233/commits/accdca23d8e843ce2ec75bfd83fa6f17ae264190
accdca2https://github.com/python/cpython/pull/134233/commits/accdca23d8e843ce2ec75bfd83fa6f17ae264190
https://github.com/bitdancer
Add news entry.https://github.com/python/cpython/pull/134233/commits/00996bd58aac2fe57c31115edb7436fcc0e985cb
00996bdhttps://github.com/python/cpython/pull/134233/commits/00996bd58aac2fe57c31115edb7436fcc0e985cb
https://github.com/bitdancer
bitdancerhttps://github.com/bitdancer
code ownerhttps://github.com/python/cpython/blob/de70614c1387636c8f835ee3e4eb36c8ae721f21/.github/CODEOWNERS#L165
May 19, 2025 14:46https://github.com/python/cpython/pull/134233#event-17716672815
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 19, 2025 https://github.com/python/cpython/pull/134233#ref-issue-3071009872
UnboundLocalError in email._header_value_parser.parse_message_id #134152 https://github.com/python/cpython/issues/134152
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
May 19, 2025https://github.com/python/cpython/pull/134233#event-17716674866
https://github.com/bitdancer
bitdancerhttps://github.com/bitdancer
May 19, 2025 https://github.com/python/cpython/pull/134233#ref-pullrequest-3071982579
gh-134155: fix AttributeError in email._header_value_parser.get_address #134194 https://github.com/python/cpython/pull/134194
https://github.com/bitdancer
Merge branch 'main' into get_ptext_to_endchars_pos_errorhttps://github.com/python/cpython/pull/134233/commits/3e768e733fc7447ec8daf6d46f83925fe4988327
3e768e7https://github.com/python/cpython/pull/134233/commits/3e768e733fc7447ec8daf6d46f83925fe4988327
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
May 25, 2025 https://github.com/python/cpython/pull/134233#pullrequestreview-2866914223
View reviewed changes https://github.com/python/cpython/pull/134233/files/3e768e733fc7447ec8daf6d46f83925fe4988327
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
May 25, 2025https://github.com/python/cpython/pull/134233#event-17805140563
https://github.com/bitdancer
bitdancerhttps://github.com/bitdancer
a32ea45https://github.com/python/cpython/commit/a32ea456992fedfc9ce61561c88056de3c18cffd
May 25, 2025https://github.com/python/cpython/pull/134233#event-17805659086
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
May 25, 2025https://github.com/python/cpython/pull/134233#event-17805659187
https://github.com/bitdancer
bitdancerhttps://github.com/bitdancer
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
May 25, 2025https://github.com/python/cpython/pull/134233#event-17805660428
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
May 25, 2025https://github.com/python/cpython/pull/134233#issuecomment-2908117526
@bitdancerhttps://github.com/bitdancer
Please reload this pagehttps://github.com/python/cpython/pull/134233
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
May 25, 2025https://github.com/python/cpython/pull/134233#issuecomment-2908117533
@bitdancerhttps://github.com/bitdancer
Please reload this pagehttps://github.com/python/cpython/pull/134233
miss-islingtonhttps://github.com/miss-islington
May 25, 2025 https://github.com/python/cpython/pull/134233#ref-commit-6f8d717
https://github.com/bitdancer
https://github.com/miss-islington
pythongh-134152https://github.com/python/cpython/issues/134152
: Fix UnboundLocalError in email._header_value_parser …https://github.com/miss-islington/cpython/commit/6f8d7173720b6ea2e9dad944f3afa44f963b22c2
6f8d717https://github.com/miss-islington/cpython/commit/6f8d7173720b6ea2e9dad944f3afa44f963b22c2
pythonGH-134233https://github.com/python/cpython/pull/134233
a32ea45https://github.com/miss-islington/cpython/commit/a32ea456992fedfc9ce61561c88056de3c18cffd
miss-islingtonhttps://github.com/miss-islington
May 25, 2025 https://github.com/python/cpython/pull/134233#ref-commit-cfa70b1
https://github.com/bitdancer
https://github.com/miss-islington
pythongh-134152https://github.com/python/cpython/issues/134152
: Fix UnboundLocalError in email._header_value_parser …https://github.com/miss-islington/cpython/commit/cfa70b1be646353a51e623d8fce9ec54544cd1ab
cfa70b1https://github.com/miss-islington/cpython/commit/cfa70b1be646353a51e623d8fce9ec54544cd1ab
pythonGH-134233https://github.com/python/cpython/pull/134233
a32ea45https://github.com/miss-islington/cpython/commit/a32ea456992fedfc9ce61561c88056de3c18cffd
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 25, 2025https://github.com/python/cpython/pull/134233#issuecomment-2908117620
GH-134677https://github.com/python/cpython/pull/134677
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/134233
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
May 25, 2025https://github.com/python/cpython/pull/134233#event-17805660954
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 25, 2025https://github.com/python/cpython/pull/134233#issuecomment-2908117645
GH-134678https://github.com/python/cpython/pull/134678
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/134233
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
May 25, 2025https://github.com/python/cpython/pull/134233#event-17805661082
hugovkhttps://github.com/hugovk
May 26, 2025 https://github.com/python/cpython/pull/134233#ref-commit-1ce68f6
https://github.com/miss-islington
https://github.com/bitdancer
[3.14]https://github.com/python/cpython/commit/1ce68f6297560c3d22169f0280a516b79375e947
gh-134152https://github.com/python/cpython/issues/134152
: Fix UnboundLocalError in email._header_value_parser…https://github.com/python/cpython/commit/1ce68f6297560c3d22169f0280a516b79375e947
1ce68f6https://github.com/python/cpython/commit/1ce68f6297560c3d22169f0280a516b79375e947
GH-134233https://github.com/python/cpython/pull/134233
#134678https://github.com/python/cpython/pull/134678
hugovkhttps://github.com/hugovk
May 26, 2025 https://github.com/python/cpython/pull/134233#ref-commit-08e1ba8
https://github.com/miss-islington
https://github.com/bitdancer
[3.13]https://github.com/python/cpython/commit/08e1ba88133f1d770eedb9e72cde340cc2c0dcd8
gh-134152https://github.com/python/cpython/issues/134152
: Fix UnboundLocalError in email._header_value_parser…https://github.com/python/cpython/commit/08e1ba88133f1d770eedb9e72cde340cc2c0dcd8
08e1ba8https://github.com/python/cpython/commit/08e1ba88133f1d770eedb9e72cde340cc2c0dcd8
GH-134233https://github.com/python/cpython/pull/134233
#134677https://github.com/python/cpython/pull/134677
https://github.com/bitdancer
bitdancerhttps://github.com/bitdancer
May 26, 2025 16:55https://github.com/python/cpython/pull/134233#event-17817521423
Pranjal095https://github.com/Pranjal095
Jul 12, 2025 https://github.com/python/cpython/pull/134233#ref-commit-6c925a8
https://github.com/bitdancer
https://github.com/Pranjal095
pythongh-134152https://github.com/python/cpython/issues/134152
: Fix UnboundLocalError in email._header_value_parser …https://github.com/Pranjal095/cpython/commit/6c925a8034ac0a931522b0b0ee1f0375d25b796b
6c925a8https://github.com/Pranjal095/cpython/commit/6c925a8034ac0a931522b0b0ee1f0375d25b796b
python#134233https://github.com/python/cpython/pull/134233
taegyunkimhttps://github.com/taegyunkim
Aug 4, 2025 https://github.com/python/cpython/pull/134233#ref-commit-e64cb6f
https://github.com/bitdancer
https://github.com/taegyunkim
pythongh-134152https://github.com/python/cpython/issues/134152
: Fix UnboundLocalError in email._header_value_parser …https://github.com/taegyunkim/cpython/commit/e64cb6f4825e530196b9d7e29665662b9b9c1d5f
e64cb6fhttps://github.com/taegyunkim/cpython/commit/e64cb6f4825e530196b9d7e29665662b9b9c1d5f
python#134233https://github.com/python/cpython/pull/134233
gostak-ddhttps://github.com/gostak-dd
Jun 2, 2026 https://github.com/python/cpython/pull/134233#ref-commit-a5ead2f
https://github.com/bitdancer
https://github.com/gostak-dd
pythongh-134152https://github.com/python/cpython/issues/134152
: Fix UnboundLocalError in email._header_value_parser …https://github.com/gostak-dd/cpython/commit/a5ead2f9e43f53b5664fa35f7477301c217daeba
a5ead2fhttps://github.com/gostak-dd/cpython/commit/a5ead2f9e43f53b5664fa35f7477301c217daeba
python#134233https://github.com/python/cpython/pull/134233
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F134233
https://github.com/gpshead
gpshead https://github.com/gpshead
https://github.com/python/cpython/pull/134233/files/3e768e733fc7447ec8daf6d46f83925fe4988327
Please reload this pagehttps://github.com/python/cpython/pull/134233
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Please reload this pagehttps://github.com/python/cpython/pull/134233
https://github.com/bitdancer
https://github.com/gpshead
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.