René's URL Explorer Experiment


Title: gh-139633: Run `netrc` file permission check only once per parse by cmaloney · Pull Request #139634 · python/cpython · GitHub

Open Graph Title: gh-139633: Run `netrc` file permission check only once per parse by cmaloney · Pull Request #139634 · python/cpython

X Title: gh-139633: Run `netrc` file permission check only once per parse by cmaloney · Pull Request #139634 · python/cpython

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

Open Graph Description: Change the .netrc security check to be run once per parse of the default file rather than once per line inside the file. Issue: Check .netrc file permissions once per parse #139633

X Description: Change the .netrc security check to be run once per parse of the default file rather than once per line inside the file. Issue: Check .netrc file permissions once per parse #139633

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

X: @github

direct link

Domain: github.com

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:f6878f44-679d-b29b-bd36-beaf44688744
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC752:4FAAE:3FA4CA0:5919CB5:6A5052C1
html-safe-nonce4dc6ecc6989c366c08e6a0f730b4b590a161de1e23009d7af8ba81aa4df004f8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzUyOjRGQUFFOjNGQTRDQTA6NTkxOUNCNTo2QTUwNTJDMSIsInZpc2l0b3JfaWQiOiIyNzIwNTI5MTk3NTg1MDg3MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace97377bb471b7188b6e4a5634e3e8a25d9769a2397f43fc84a7329bb3e5d4760
hovercard-subject-tagpull_request:2888428603
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/139634/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/609a776c8f25fb43b7bc94843833e8fb152e0d68e0e9f3124d546ef72ac925c7/python/cpython/pull/139634
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/609a776c8f25fb43b7bc94843833e8fb152e0d68e0e9f3124d546ef72ac925c7/python/cpython/pull/139634
og:image:altChange the .netrc security check to be run once per parse of the default file rather than once per line inside the file. Issue: Check .netrc file permissions once per parse #139633
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecmaloney
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
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
release5741a45fe07e5f377d0d4c524a92e3056acc51bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/139634#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139634
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F139634
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/139634
Reloadhttps://github.com/python/cpython/pull/139634
Reloadhttps://github.com/python/cpython/pull/139634
Please reload this pagehttps://github.com/python/cpython/pull/139634
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/139634
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
cmaloney:netrc_security_checkhttps://github.com/cmaloney/cpython/tree/netrc_security_check
Conversationhttps://github.com/python/cpython/pull/139634
Commits4 (4)https://github.com/python/cpython/pull/139634/commits
Checkshttps://github.com/python/cpython/pull/139634/checks
Files changedhttps://github.com/python/cpython/pull/139634/files
gh-139633: Run netrc file permission check only once per parsehttps://github.com/python/cpython/pull/139634#top
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
cmaloney:netrc_security_checkhttps://github.com/cmaloney/cpython/tree/netrc_security_check
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Oct 5, 2025https://github.com/python/cpython/pull/139634#issue-3485232927
Please reload this pagehttps://github.com/python/cpython/pull/139634
Check .netrc file permissions once per parse #139633https://github.com/python/cpython/issues/139633
Please reload this pagehttps://github.com/python/cpython/pull/139634
https://github.com/cmaloney
pythongh-139633https://github.com/python/cpython/issues/139633
: Runhttps://github.com/python/cpython/pull/139634/commits/e81151a4be545b4603875cf8ee7580a61cec0e18
netrchttps://github.com/python/cpython/pull/139634/commits/e81151a4be545b4603875cf8ee7580a61cec0e18
file permission check only once per parsehttps://github.com/python/cpython/pull/139634/commits/e81151a4be545b4603875cf8ee7580a61cec0e18
e81151ahttps://github.com/python/cpython/pull/139634/commits/e81151a4be545b4603875cf8ee7580a61cec0e18
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 5, 2025 https://github.com/python/cpython/pull/139634#ref-issue-3485209264
Check .netrc file permissions once per parse #139633 https://github.com/python/cpython/issues/139633
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 5, 2025https://github.com/python/cpython/pull/139634#event-20103506693
cmaloneyhttps://github.com/cmaloney
October 5, 2025 15:38https://github.com/python/cpython/pull/139634#commits-pushed-6963ce9
https://github.com/cmaloney
Add blurbhttps://github.com/python/cpython/pull/139634/commits/6963ce94cf7a901a702e96d06000520556dcb877
6963ce9https://github.com/python/cpython/pull/139634/commits/6963ce94cf7a901a702e96d06000520556dcb877
https://github.com/cmaloney
Move to unittest.mock.patchhttps://github.com/python/cpython/pull/139634/commits/4a32d6d9aacdad3e6bba4736cb2de0cc8d5cb7d7
4a32d6dhttps://github.com/python/cpython/pull/139634/commits/4a32d6d9aacdad3e6bba4736cb2de0cc8d5cb7d7
https://github.com/cmaloney
fixup: Slightly better comment; return rather than breakhttps://github.com/python/cpython/pull/139634/commits/4549627d73ef2dcde94579bfc02feae3797df942
4549627https://github.com/python/cpython/pull/139634/commits/4549627d73ef2dcde94579bfc02feae3797df942
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
March 30, 2026 18:47https://github.com/python/cpython/pull/139634#event-24047492411
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Mar 30, 2026 https://github.com/python/cpython/pull/139634#pullrequestreview-4032705228
View reviewed changes https://github.com/python/cpython/pull/139634/files/4549627d73ef2dcde94579bfc02feae3797df942
serhiy-storchakahttps://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/139634#pullrequestreview-4032705228
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/139634
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 review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Mar 30, 2026https://github.com/python/cpython/pull/139634#event-24048005672
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
a25e097https://github.com/python/cpython/commit/a25e09721af7b9ea55a1a3baf5282bdf7670888e
Mar 30, 2026https://github.com/python/cpython/pull/139634#event-24048026488
Please reload this pagehttps://github.com/python/cpython/pull/139634
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
Mar 30, 2026https://github.com/python/cpython/pull/139634#event-24048028863
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Mar 30, 2026https://github.com/python/cpython/pull/139634#issuecomment-4157595664
a25e097https://github.com/python/cpython/commit/a25e09721af7b9ea55a1a3baf5282bdf7670888e
the buildbot page in the devguidehttps://devguide.python.org/buildbots/
https://buildbot.python.org/#/builders/1380/builds/6202https://buildbot.python.org/#/builders/1380/builds/6202
a25e097https://github.com/python/cpython/commit/a25e09721af7b9ea55a1a3baf5282bdf7670888e
https://buildbot.python.org/#/builders/1380/builds/6202https://buildbot.python.org/#/builders/1380/builds/6202
Please reload this pagehttps://github.com/python/cpython/pull/139634
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 30, 2026https://github.com/python/cpython/pull/139634#issuecomment-4157653500
a25e097https://github.com/python/cpython/commit/a25e09721af7b9ea55a1a3baf5282bdf7670888e
Please reload this pagehttps://github.com/python/cpython/pull/139634
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
March 30, 2026 20:36https://github.com/python/cpython/pull/139634#event-24050891629
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Mar 30, 2026https://github.com/python/cpython/pull/139634#issuecomment-4158021026
Please reload this pagehttps://github.com/python/cpython/pull/139634
maurycyhttps://github.com/maurycy
Mar 31, 2026 https://github.com/python/cpython/pull/139634#ref-commit-9836ffa
https://github.com/maurycy
Merge branch 'main' into tachyon-ndjson-kolektorhttps://github.com/maurycy/cpython/commit/9836ffa6ed66864138af8678a599de87f5f891f2
9836ffahttps://github.com/maurycy/cpython/commit/9836ffa6ed66864138af8678a599de87f5f891f2
pythongh-145458https://github.com/python/cpython/issues/145458
python#145459https://github.com/python/cpython/pull/145459
pythongh-146615https://github.com/python/cpython/issues/146615
pythonGH-146620https://github.com/python/cpython/pull/146620
pythongh-146615https://github.com/python/cpython/issues/146615
pythonGH-146619https://github.com/python/cpython/pull/146619
pythongh-146615https://github.com/python/cpython/issues/146615
pythonGH-146618https://github.com/python/cpython/pull/146618
pythongh-146615https://github.com/python/cpython/issues/146615
pythonGH-146617https://github.com/python/cpython/pull/146617
pythongh-146615https://github.com/python/cpython/issues/146615
pythonGH-146634https://github.com/python/cpython/pull/146634
pythongh-146376https://github.com/python/cpython/issues/146376
python#146378https://github.com/python/cpython/pull/146378
pythongh-146442https://github.com/python/cpython/issues/146442
python#146443https://github.com/python/cpython/pull/146443
pythongh-146238https://github.com/python/cpython/issues/146238
python#146242https://github.com/python/cpython/pull/146242
pythongh-145056https://github.com/python/cpython/issues/145056
pythonGH-146465https://github.com/python/cpython/pull/146465
pythongh-145056https://github.com/python/cpython/issues/145056
pythonGH-146466https://github.com/python/cpython/pull/146466
pythongh-139633https://github.com/python/cpython/issues/139633
pythonGH-139634https://github.com/python/cpython/pull/139634
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Apr 4, 2026 https://github.com/python/cpython/pull/139634#ref-pullrequest-3716338400
gh-130273: Fix traceback color output with unicode characters #142529 https://github.com/python/cpython/pull/142529
clin1234https://github.com/clin1234
Apr 16, 2026 https://github.com/python/cpython/pull/139634#ref-commit-bd19f4b
https://github.com/cmaloney
https://github.com/clin1234
pythongh-139633https://github.com/python/cpython/issues/139633
: Run netrc file permission check only once per parse (https://github.com/clin1234/cpython/commit/bd19f4bfe1e297b72b01d045151720455312ea78
p…https://github.com/python/cpython/pull/139634
bd19f4bhttps://github.com/clin1234/cpython/commit/bd19f4bfe1e297b72b01d045151720455312ea78
…ythonGH-139634https://github.com/python/cpython/pull/139634
ljfphttps://github.com/ljfp
Apr 25, 2026 https://github.com/python/cpython/pull/139634#ref-commit-2bc6ae7
https://github.com/cmaloney
https://github.com/ljfp
pythongh-139633https://github.com/python/cpython/issues/139633
: Run netrc file permission check only once per parse (https://github.com/ljfp/cpython/commit/2bc6ae7d1adc40a18897c553ac1df5269035d0a1
p…https://github.com/python/cpython/pull/139634
2bc6ae7https://github.com/ljfp/cpython/commit/2bc6ae7d1adc40a18897c553ac1df5269035d0a1
…ythonGH-139634https://github.com/python/cpython/pull/139634
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%2F139634
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/139634/files/4549627d73ef2dcde94579bfc02feae3797df942
Please reload this pagehttps://github.com/python/cpython/pull/139634
https://github.com/cmaloney
https://github.com/bedevere-bot
https://github.com/vstinner
https://github.com/serhiy-storchaka
https://github.com/nazeerali4325-commits
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.