René's URL Explorer Experiment


Title: gh-102498 Clean up unused variables and imports in the email module by JosephSBoyle · Pull Request #102482 · python/cpython · GitHub

Open Graph Title: gh-102498 Clean up unused variables and imports in the email module by JosephSBoyle · Pull Request #102482 · python/cpython

X Title: gh-102498 Clean up unused variables and imports in the email module by JosephSBoyle · Pull Request #102482 · python/cpython

Description: Found some unused vars using the following pyflakes command $ python3.12 -m pyflakes Lib/email/. Inspired by @AlexWaygood 's use of the tool to find issues in the test_typing.py file (can't seem to find the exact issue). Cleanup some unused variables and imports in the email module. In text.py I replaced a pagebreak character (U+000C) with a newline. The latter doesn't seem to be rendered by GH. VScode shows it, as will most editors I imagine. GH Issue: #102498 Issue: gh-102498

Open Graph Description: Found some unused vars using the following pyflakes command $ python3.12 -m pyflakes Lib/email/. Inspired by @AlexWaygood 's use of the tool to find issues in the test_typing.py file (can'...

X Description: Found some unused vars using the following pyflakes command $ python3.12 -m pyflakes Lib/email/. Inspired by @AlexWaygood 's use of the tool to find issues in the test_typing.py file (can&...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:212cccc6-bf4f-e791-6807-a157324e5a51
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id98F4:25B5C6:2866D:37A4B:696A1696
html-safe-nonce5299705909a9f9d774af6f4f322470baa3e7d9df65fa4fbd875f1ff38d2b9e8c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEY0OjI1QjVDNjoyODY2RDozN0E0Qjo2OTZBMTY5NiIsInZpc2l0b3JfaWQiOiI1NTM4OTQzMTkxMzgyMzY1ODQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5bd38eba86729f355da15849134f04fd5026a04065cc947663128a3d7e04a170
hovercard-subject-tagpull_request:1265219681
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/102482/files
twitter:imagehttps://avatars.githubusercontent.com/u/48555120?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/48555120?s=400&v=4
og:image:altFound some unused vars using the following pyflakes command $ python3.12 -m pyflakes Lib/email/. Inspired by @AlexWaygood 's use of the tool to find issues in the test_typing.py file (can'...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None34a52bd10bd674f68e5c1b6b74413b79bf2ca20c551055ace3f7cdd112803923
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee8bd37502700f365b18a4d39acf7cb7947e11b1a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/102482/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F102482%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F102482%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/102482/files
Reloadhttps://github.com/python/cpython/pull/102482/files
Reloadhttps://github.com/python/cpython/pull/102482/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/102482/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/102482/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
warsawhttps://github.com/warsaw
python:mainhttps://github.com/python/cpython/tree/main
JosephSBoyle:fix-unused-vars-in-emailhttps://github.com/JosephSBoyle/cpython/tree/fix-unused-vars-in-email
Conversation 11 https://github.com/python/cpython/pull/102482
Commits 16 https://github.com/python/cpython/pull/102482/commits
Checks 0 https://github.com/python/cpython/pull/102482/checks
Files changed https://github.com/python/cpython/pull/102482/files
Please reload this pagehttps://github.com/python/cpython/pull/102482/files
gh-102498 Clean up unused variables and imports in the email module https://github.com/python/cpython/pull/102482/files#top
Show all changes 16 commits https://github.com/python/cpython/pull/102482/files
dc7176e Clean up unused variables and imports in the email module JosephSBoyle Mar 6, 2023 https://github.com/python/cpython/pull/102482/commits/dc7176ee4d16959295603fc2360837117d4b69ce
d78691f Remove extra newline char JosephSBoyle Mar 7, 2023 https://github.com/python/cpython/pull/102482/commits/d78691fe40d2792cfd88a93ba24ea5c4cc8045ca
8cda6c2 Remove superflous dict+unpacking syntax JosephSBoyle Mar 7, 2023 https://github.com/python/cpython/pull/102482/commits/8cda6c218bc6958ef061b353a2a1dfe6afa9fa2e
aa6402a Remove unused 'msg' var JosephSBoyle Mar 7, 2023 https://github.com/python/cpython/pull/102482/commits/aa6402ae9c63035b660e527ff7e0b3d1e4085abc
e579c75 Clean up unused variables and imports in the email module JosephSBoyle Mar 6, 2023 https://github.com/python/cpython/pull/102482/commits/e579c75073b1551d112508d18aab7c5106003e28
f96ae11 Remove extra newline char JosephSBoyle Mar 7, 2023 https://github.com/python/cpython/pull/102482/commits/f96ae111406fb2943f0671f8a4bfccde1ffc302c
d2f40af Remove superflous dict+unpacking syntax JosephSBoyle Mar 7, 2023 https://github.com/python/cpython/pull/102482/commits/d2f40afa0465af16281a276234bd8de5ecae1078
76f5222 Remove unused 'msg' var JosephSBoyle Mar 7, 2023 https://github.com/python/cpython/pull/102482/commits/76f5222ec7290f04e5373000b2dae5eb9cf8ed2d
b2f6548 Merge branch 'main' into fix-unused-vars-in-email JosephSBoyle Mar 8, 2023 https://github.com/python/cpython/pull/102482/commits/b2f654861e3b390d330721599fbb63a393e5d1ac
45fa813 Merge branch 'fix-unused-vars-in-email' of github.com:JosephSBoyle/cp… JosephSBoyle Mar 9, 2023 https://github.com/python/cpython/pull/102482/commits/45fa8136feb6eaddc9c8b601bc6abe5fa39a9881
71e6e58 Merge remote-tracking branch 'upstream/main' into fix-unused-vars-in-… JosephSBoyle Mar 9, 2023 https://github.com/python/cpython/pull/102482/commits/71e6e589a533d1206c3220d1f46009db2878a4d9
3e781bf Merge branch 'main' into fix-unused-vars-in-email JosephSBoyle Mar 27, 2023 https://github.com/python/cpython/pull/102482/commits/3e781bfaf16da1aa08969aa79da9c2d800791a2b
8a5e896 Merge branch 'main' into fix-unused-vars-in-email JosephSBoyle Apr 3, 2023 https://github.com/python/cpython/pull/102482/commits/8a5e8961005f5ce0b4ff9d0898f41ddf4361e6e3
f8f97e1 Merge branch 'main' into fix-unused-vars-in-email JosephSBoyle Apr 10, 2023 https://github.com/python/cpython/pull/102482/commits/f8f97e1201b350413c7dc216c915fd3483a5af4e
40a3ad9 Merge branch 'main' into fix-unused-vars-in-email JosephSBoyle Apr 22, 2023 https://github.com/python/cpython/pull/102482/commits/40a3ad92d6292d6bfa63fb1255797920b46a0262
1cc123f Merge branch 'main' into fix-unused-vars-in-email warsaw Apr 24, 2023 https://github.com/python/cpython/pull/102482/commits/1cc123f7fce1907fc79a9d4fabd19c1df5cd800e
Clear filters https://github.com/python/cpython/pull/102482/files
Please reload this pagehttps://github.com/python/cpython/pull/102482/files
Please reload this pagehttps://github.com/python/cpython/pull/102482/files
_header_value_parser.py https://github.com/python/cpython/pull/102482/files#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
charset.py https://github.com/python/cpython/pull/102482/files#diff-22453a31b90d61a4839b252dd6cd08e024da08152d37590cb5a5e37742563040
feedparser.py https://github.com/python/cpython/pull/102482/files#diff-499ee091a972d793e32810a987f8258f1d86f14af23d69d80ed62fa8d8d9d6a8
message.py https://github.com/python/cpython/pull/102482/files#diff-8d85e2ee8994c53df9d326f3d225d2dcb70d8777c2eee1ad72974950a949040e
text.py https://github.com/python/cpython/pull/102482/files#diff-42d6f1bb4361c082be99664a7b7664e6d45ad1018a2bf7a730ee519d7957d73f
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L439
Lib/email/_header_value_parser.pyhttps://github.com/python/cpython/pull/102482/files#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
View file https://github.com/JosephSBoyle/cpython/blob/1cc123f7fce1907fc79a9d4fabd19c1df5cd800e/Lib/email/_header_value_parser.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/102482/{{ revealButtonHref }}
https://github.com/python/cpython/pull/102482/files#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
https://github.com/python/cpython/pull/102482/files#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
https://github.com/python/cpython/pull/102482/files#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
https://github.com/python/cpython/pull/102482/files#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
https://github.com/python/cpython/pull/102482/files#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
https://github.com/python/cpython/pull/102482/files#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
https://github.com/python/cpython/pull/102482/files#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
https://github.com/python/cpython/pull/102482/files#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
https://github.com/python/cpython/pull/102482/files#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
https://github.com/python/cpython/pull/102482/files#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L439
Lib/email/charset.pyhttps://github.com/python/cpython/pull/102482/files#diff-22453a31b90d61a4839b252dd6cd08e024da08152d37590cb5a5e37742563040
View file https://github.com/JosephSBoyle/cpython/blob/1cc123f7fce1907fc79a9d4fabd19c1df5cd800e/Lib/email/charset.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/102482/{{ revealButtonHref }}
https://github.com/python/cpython/pull/102482/files#diff-22453a31b90d61a4839b252dd6cd08e024da08152d37590cb5a5e37742563040
https://github.com/python/cpython/pull/102482/files#diff-22453a31b90d61a4839b252dd6cd08e024da08152d37590cb5a5e37742563040
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L439
Lib/email/feedparser.pyhttps://github.com/python/cpython/pull/102482/files#diff-499ee091a972d793e32810a987f8258f1d86f14af23d69d80ed62fa8d8d9d6a8
View file https://github.com/JosephSBoyle/cpython/blob/1cc123f7fce1907fc79a9d4fabd19c1df5cd800e/Lib/email/feedparser.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/102482/{{ revealButtonHref }}
https://github.com/python/cpython/pull/102482/files#diff-499ee091a972d793e32810a987f8258f1d86f14af23d69d80ed62fa8d8d9d6a8
https://github.com/python/cpython/pull/102482/files#diff-499ee091a972d793e32810a987f8258f1d86f14af23d69d80ed62fa8d8d9d6a8
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L439
Lib/email/message.pyhttps://github.com/python/cpython/pull/102482/files#diff-8d85e2ee8994c53df9d326f3d225d2dcb70d8777c2eee1ad72974950a949040e
View file https://github.com/JosephSBoyle/cpython/blob/1cc123f7fce1907fc79a9d4fabd19c1df5cd800e/Lib/email/message.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/102482/{{ revealButtonHref }}
https://github.com/python/cpython/pull/102482/files#diff-8d85e2ee8994c53df9d326f3d225d2dcb70d8777c2eee1ad72974950a949040e
https://github.com/python/cpython/pull/102482/files#diff-8d85e2ee8994c53df9d326f3d225d2dcb70d8777c2eee1ad72974950a949040e
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L441
Lib/email/mime/text.pyhttps://github.com/python/cpython/pull/102482/files#diff-42d6f1bb4361c082be99664a7b7664e6d45ad1018a2bf7a730ee519d7957d73f
View file https://github.com/JosephSBoyle/cpython/blob/1cc123f7fce1907fc79a9d4fabd19c1df5cd800e/Lib/email/mime/text.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/102482/{{ revealButtonHref }}
https://github.com/python/cpython/pull/102482/files#diff-42d6f1bb4361c082be99664a7b7664e6d45ad1018a2bf7a730ee519d7957d73f
https://github.com/python/cpython/pull/102482/files#diff-42d6f1bb4361c082be99664a7b7664e6d45ad1018a2bf7a730ee519d7957d73f
https://github.com/python/cpython/pull/102482/files#diff-42d6f1bb4361c082be99664a7b7664e6d45ad1018a2bf7a730ee519d7957d73f
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.