| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:996888e8-b149-de07-9f32-caeb324760f3 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DA08:446DE:6C3A992:989CA32:6A510497 |
| html-safe-nonce | ca4e28d023a59baaca640e588691e4a3147deb3139362671eb686b3cb045e94b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTA4OjQ0NkRFOjZDM0E5OTI6OTg5Q0EzMjo2QTUxMDQ5NyIsInZpc2l0b3JfaWQiOiIzMjA2NDM3NzU5NjQ5NjQ1NzE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4e1885fe2b3396e251aad32ae41e43a736f7a6b7216dea34ce75f3ccaff7442f |
| hovercard-subject-tag | pull_request:135201315 |
| 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/3066/files |
| twitter:image | https://avatars.githubusercontent.com/u/773529?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/773529?s=400&v=4 |
| og:image:alt | This particular fix makes most sense in my opinion because a decode is only required if we're dealing with the subprocess output. If we're falling back to a default error because that fails... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 38906a4da4e3e9fd88dfeacee232f5932c0c5f7495de3b4efc53ddfac7173d12 |
| 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 | 90441ea9b98e7491aa6ebcd135fccce4e2396f48 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/3066/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F3066%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| 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 |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| 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/enterprise/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%2F3066%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/3066/files |
| Reload | https://github.com/python/cpython/pull/3066/files |
| Reload | https://github.com/python/cpython/pull/3066/files |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.7k
| 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 |
| 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 |
| gpshead | https://github.com/gpshead |
| python:master | https://github.com/python/cpython/tree/master |
| ammaraskar:subprocess-error | https://github.com/ammaraskar/cpython/tree/subprocess-error |
|
Conversation
55
| https://github.com/python/cpython/pull/3066 |
|
Commits
9
| https://github.com/python/cpython/pull/3066/commits |
|
Checks
0
| https://github.com/python/cpython/pull/3066/checks |
|
Files changed
| https://github.com/python/cpython/pull/3066/files |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
|
bpo-31178: Avoid concatenating bytes with str in subprocess error
| https://github.com/python/cpython/pull/3066/files#top |
|
Show all changes
9 commits
| https://github.com/python/cpython/pull/3066/files |
|
8f8b86a
bpo-31178: Avoid concatenating bytes with str in subprocess error
ammaraskar Aug 10, 2017
| https://github.com/python/cpython/pull/3066/commits/8f8b86a7d8d139a66525b6d29e3dc63acc2d6915 |
|
c277e29
Do not attempt to decode in exception path
ammaraskar Aug 16, 2017
| https://github.com/python/cpython/pull/3066/commits/c277e292235de4ec798ef335f692cc2aad1f839a |
|
df3e1d3
Add tests and remove surrogatepass
ammaraskar Aug 17, 2017
| https://github.com/python/cpython/pull/3066/commits/df3e1d392b71509e205be5535a8be1fa5d582eef |
|
7410ae2
Use repr instead of str in bad path
ammaraskar Aug 17, 2017
| https://github.com/python/cpython/pull/3066/commits/7410ae22c5100afd9cc2f5757f3822e4fe5e3beb |
|
f007582
Add UnicodeError to except in case the junk contains 2 colons
ammaraskar Aug 17, 2017
| https://github.com/python/cpython/pull/3066/commits/f007582b2c8de3f71c258c8f57f7661860af7b55 |
|
f061ff1
Changes for Serhiy's review
ammaraskar Aug 17, 2017
| https://github.com/python/cpython/pull/3066/commits/f061ff1129cb02bc65fa35918c2bd06ab9163da5 |
|
7a36648
Avoid harcoding EISDIR errno
ammaraskar Aug 20, 2017
| https://github.com/python/cpython/pull/3066/commits/7a36648700aef6f36d4ca0a55b9fd8afa8b77568 |
|
2707615
Mock __del__ with a subclass instead of mocking the method
ammaraskar Aug 20, 2017
| https://github.com/python/cpython/pull/3066/commits/270761590347bf19baecd09bd1d3ad6ea6d236d8 |
|
8634c2b
Add news entry
ammaraskar Sep 5, 2017
| https://github.com/python/cpython/pull/3066/commits/8634c2b86da7c8569957e3d0986be5c89a90d232 |
|
Clear filters
| https://github.com/python/cpython/pull/3066/files |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
|
subprocess.py
| https://github.com/python/cpython/pull/3066/files#diff-619941af4b328b6abf2dc02c54e774fc17acc1ac4172c14db27d6097cbbff92a |
|
test_subprocess.py
| https://github.com/python/cpython/pull/3066/files#diff-5825be1d1a8e2c68a9321c3d4d04980a72bd4354e35e70bd2407e5e28460c782 |
|
2017-09-05-14-55-28.bpo-31178.JrSFo7.rst
| https://github.com/python/cpython/pull/3066/files#diff-ba19e197cad818fa97f53229a8479dd7be9d0c231e8a130035cd81e04245980a |
| Lib/subprocess.py | https://github.com/python/cpython/pull/3066/files#diff-619941af4b328b6abf2dc02c54e774fc17acc1ac4172c14db27d6097cbbff92a |
|
View file
| https://github.com/ammaraskar/cpython/blob/8634c2b86da7c8569957e3d0986be5c89a90d232/Lib/subprocess.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/3066/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/3066/files#diff-619941af4b328b6abf2dc02c54e774fc17acc1ac4172c14db27d6097cbbff92a |
| vstinner | https://github.com/vstinner |
| Aug 16, 2017 | https://github.com/python/cpython/pull/3066/files#r133401600 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Aug 16, 2017 | https://github.com/python/cpython/pull/3066/files#r133409173 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
| vstinner | https://github.com/vstinner |
| Aug 17, 2017 | https://github.com/python/cpython/pull/3066/files#r133659481 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Aug 17, 2017 | https://github.com/python/cpython/pull/3066/files#r133666379 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
| vstinner | https://github.com/vstinner |
| Aug 17, 2017 | https://github.com/python/cpython/pull/3066/files#r133697117 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @serhiy-storchaka | https://github.com/serhiy-storchaka |
| @ammaraskar | https://github.com/ammaraskar |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
| ammaraskar | https://github.com/ammaraskar |
| Aug 17, 2017 | https://github.com/python/cpython/pull/3066/files#r133726909 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #3066 (comment) | https://github.com/python/cpython/pull/3066#discussion_r133686665 |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
| vstinner | https://github.com/vstinner |
| Aug 17, 2017 | https://github.com/python/cpython/pull/3066/files#r133659966 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Aug 17, 2017 | https://github.com/python/cpython/pull/3066/files#r133667082 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
| ammaraskar | https://github.com/ammaraskar |
| Aug 17, 2017 | https://github.com/python/cpython/pull/3066/files#r133686665 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://github.com/python/cpython/blob/master/Modules/_posixsubprocess.c#L522 | https://github.com/python/cpython/blob/master/Modules/_posixsubprocess.c#L522 |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
| ammaraskar | https://github.com/ammaraskar |
| Aug 17, 2017 | https://github.com/python/cpython/pull/3066/files#r133688496 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3066/files |
|
| https://github.com/python/cpython/pull/3066/files#diff-619941af4b328b6abf2dc02c54e774fc17acc1ac4172c14db27d6097cbbff92a |
| Lib/test/test_subprocess.py | https://github.com/python/cpython/pull/3066/files#diff-5825be1d1a8e2c68a9321c3d4d04980a72bd4354e35e70bd2407e5e28460c782 |
|
View file
| https://github.com/ammaraskar/cpython/blob/8634c2b86da7c8569957e3d0986be5c89a90d232/Lib/test/test_subprocess.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/3066/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/3066/files#diff-5825be1d1a8e2c68a9321c3d4d04980a72bd4354e35e70bd2407e5e28460c782 |
|
| https://github.com/python/cpython/pull/3066/files#diff-5825be1d1a8e2c68a9321c3d4d04980a72bd4354e35e70bd2407e5e28460c782 |
| Misc/NEWS.d/next/Library/2017-09-05-14-55-28.bpo-31178.JrSFo7.rst | https://github.com/python/cpython/pull/3066/files#diff-ba19e197cad818fa97f53229a8479dd7be9d0c231e8a130035cd81e04245980a |
|
View file
| https://github.com/ammaraskar/cpython/blob/8634c2b86da7c8569957e3d0986be5c89a90d232/Misc/NEWS.d/next/Library/2017-09-05-14-55-28.bpo-31178.JrSFo7.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/3066/{{ 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 |