| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a60e433e-1904-5393-5201-31a6ab99bac7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D408:BE21E:2726597:3674F70:69694D97 |
| html-safe-nonce | 98fa039180e9d42bb61193e31cc5f7d7fa5eac12d2ba95e3f210aa8ed9bc60fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDA4OkJFMjFFOjI3MjY1OTc6MzY3NEY3MDo2OTY5NEQ5NyIsInZpc2l0b3JfaWQiOiIxOTUwMjM3ODM1MDQ1NDU3MzAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 640b3cf2aaf86947a76899d5702b7d279a7a731544ef08ec00550b64e00dc382 |
| hovercard-subject-tag | pull_request:418090449 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/20088/files |
| twitter:image | https://avatars.githubusercontent.com/u/1525713?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1525713?s=400&v=4 |
| og:image:alt | Additional note: created a new test_pathext_with_empty_str() test, but copies roughly 10loc from test_pathext(). We could also add the assertEqual with a new with block to the test_pathext.
https:... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/20088/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20088%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2F20088%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 |
| Reload | https://github.com/python/cpython/pull/20088/files |
| Reload | https://github.com/python/cpython/pull/20088/files |
| Reload | https://github.com/python/cpython/pull/20088/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/20088/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 page | https://github.com/python/cpython/pull/20088/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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| zooba | https://github.com/zooba |
| python:master | https://github.com/python/cpython/tree/master |
| peanutlord:fix-shutil-which-windows | https://github.com/peanutlord/cpython/tree/fix-shutil-which-windows |
|
Conversation
30
| https://github.com/python/cpython/pull/20088 |
|
Commits
15
| https://github.com/python/cpython/pull/20088/commits |
|
Checks
0
| https://github.com/python/cpython/pull/20088/checks |
|
Files changed
| https://github.com/python/cpython/pull/20088/files |
| Please reload this page | https://github.com/python/cpython/pull/20088/files |
|
bpo-40592: shutil.which will not return None anymore if ; is the last char in PATHEXT
| https://github.com/python/cpython/pull/20088/files#top |
|
Show all changes
15 commits
| https://github.com/python/cpython/pull/20088/files |
|
2981e84
shutil.which will not return None anymore for empty str in PATHEXT
May 14, 2020
| https://github.com/python/cpython/pull/20088/commits/2981e84f66e06e758a0eac2620a87ff85318722c |
|
9df7b99
📜🤖 Added by blurb_it.
blurb-it[bot] May 14, 2020
| https://github.com/python/cpython/pull/20088/commits/9df7b99bcf203e5cbd82e52419121887e1079860 |
|
6dd9574
Defaulted missing PATHEX env to cmd defaults
May 14, 2020
| https://github.com/python/cpython/pull/20088/commits/6dd95748ea478555614c5028e1ed8e1b52e2f553 |
|
65b2847
Merge branch 'master' of github.com:python/cpython into fix-shutil-wh…
May 14, 2020
| https://github.com/python/cpython/pull/20088/commits/65b2847b9f98969f6ec775e6950fb799b5fe6ee0 |
|
49284d9
Merge branch 'fix-shutil-which-windows' of github.com:peanut-lord/cpy…
May 14, 2020
| https://github.com/python/cpython/pull/20088/commits/49284d909252473bd5cedbeeba568b1a29c8dc4b |
|
9eb17bb
Changed os.chmod from 'S_IXUSR' to 'S_IXUSR | S_IWUSR'
May 15, 2020
| https://github.com/python/cpython/pull/20088/commits/9eb17bb4aef95cde503e22c3fc79830d485d92dc |
|
e6a9c2c
Added comment to explain the _WIN_DEFAULT_PATHEXT properly
May 15, 2020
| https://github.com/python/cpython/pull/20088/commits/e6a9c2c78e154878cf0b722a12737e8a60569772 |
|
4966956
Updated change description
peanutlord May 19, 2020
| https://github.com/python/cpython/pull/20088/commits/496695670b5ac2cfbfc46845f96d541991be40dd |
|
cdb179e
Adjusted list comprehension to adhere line length
May 19, 2020
| https://github.com/python/cpython/pull/20088/commits/cdb179e68243580064a41500b79e005840a23ec5 |
|
01efb42
Removed chown from unittest
May 19, 2020
| https://github.com/python/cpython/pull/20088/commits/01efb429a2b550fa0895f2f6b8e1ee07b501734b |
|
fc87309
Empty PATHEXT () will now also be defaulted to _WIN_DEFAULT_PATHEXT
Oct 21, 2020
| https://github.com/python/cpython/pull/20088/commits/fc87309eae7b72ba19341f5b7b8d08a8546f21a1 |
|
6af00e7
When no extension is found, we return a list with the command
Oct 21, 2020
| https://github.com/python/cpython/pull/20088/commits/6af00e791c256045d8d31a93acaf83079b52e124 |
|
ee618eb
Revert "When no extension is found, we return a list with the command"
Oct 21, 2020
| https://github.com/python/cpython/pull/20088/commits/ee618eb819d1c984cc79b1fa1a1a8a05a26bda79 |
|
77de5b8
Merge branch 'master' of github.com:python/cpython into fix-shutil-wh…
Oct 22, 2020
| https://github.com/python/cpython/pull/20088/commits/77de5b86a9cb05c4b773ed308eef0bce7118a876 |
|
6c66dfc
Switched to from support to os_helper in unittest
Oct 22, 2020
| https://github.com/python/cpython/pull/20088/commits/6c66dfc024d080c7ba3d2482b1652382df232f9e |
|
Clear filters
| https://github.com/python/cpython/pull/20088/files |
| Please reload this page | https://github.com/python/cpython/pull/20088/files |
| Please reload this page | https://github.com/python/cpython/pull/20088/files |
|
shutil.py
| https://github.com/python/cpython/pull/20088/files#diff-db8ac59326160713929e0e1973aef54f0280fe9f154ef24d14244909a0e0689b |
|
test_shutil.py
| https://github.com/python/cpython/pull/20088/files#diff-ed52359d591fff799c0b81414bdfd9a90541cbc3b97b50a7ebaca38ed98062e7 |
|
2020-05-14-16-01-34.bpo-40592.Cmk855.rst
| https://github.com/python/cpython/pull/20088/files#diff-84b2b840db8834271fcf8313ccddd3fa9a9bd17f19aadde7835ac7f1504605b5 |
| Lib/shutil.py | https://github.com/python/cpython/pull/20088/files#diff-db8ac59326160713929e0e1973aef54f0280fe9f154ef24d14244909a0e0689b |
|
View file
| https://github.com/peanutlord/cpython/blob/6c66dfc024d080c7ba3d2482b1652382df232f9e/Lib/shutil.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/20088/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/20088/files#diff-db8ac59326160713929e0e1973aef54f0280fe9f154ef24d14244909a0e0689b |
| Please reload this page | https://github.com/python/cpython/pull/20088/files |
|
| https://github.com/python/cpython/pull/20088/files#diff-db8ac59326160713929e0e1973aef54f0280fe9f154ef24d14244909a0e0689b |
|
| https://github.com/python/cpython/pull/20088/files#diff-db8ac59326160713929e0e1973aef54f0280fe9f154ef24d14244909a0e0689b |
|
| https://github.com/python/cpython/pull/20088/files#diff-db8ac59326160713929e0e1973aef54f0280fe9f154ef24d14244909a0e0689b |
| Lib/test/test_shutil.py | https://github.com/python/cpython/pull/20088/files#diff-ed52359d591fff799c0b81414bdfd9a90541cbc3b97b50a7ebaca38ed98062e7 |
|
View file
| https://github.com/peanutlord/cpython/blob/6c66dfc024d080c7ba3d2482b1652382df232f9e/Lib/test/test_shutil.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/20088/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/20088/files#diff-ed52359d591fff799c0b81414bdfd9a90541cbc3b97b50a7ebaca38ed98062e7 |
| Please reload this page | https://github.com/python/cpython/pull/20088/files |
|
| https://github.com/python/cpython/pull/20088/files#diff-ed52359d591fff799c0b81414bdfd9a90541cbc3b97b50a7ebaca38ed98062e7 |
| Misc/NEWS.d/next/Library/2020-05-14-16-01-34.bpo-40592.Cmk855.rst | https://github.com/python/cpython/pull/20088/files#diff-84b2b840db8834271fcf8313ccddd3fa9a9bd17f19aadde7835ac7f1504605b5 |
|
View file
| https://github.com/peanutlord/cpython/blob/6c66dfc024d080c7ba3d2482b1652382df232f9e/Misc/NEWS.d/next/Library/2020-05-14-16-01-34.bpo-40592.Cmk855.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/20088/{{ revealButtonHref }} |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |