Skip to content

Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)" #5912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 27, 2018

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Feb 26, 2018

This reverts commit dd42cb7 and commit 5537646.

https://bugs.python.org/issue31961

@@ -1179,7 +1179,7 @@ def test_nonexisting_with_pipes(self):
msvcrt.CrtSetReportFile(report_type, msvcrt.CRTDBG_FILE_STDERR)

try:
subprocess.Popen(cmd,
subprocess.Popen([cmd],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not revert 5537646. It should be a bugfix no matter what. cmd is a list and comes through the repr into this python code string as a list. using [cmd] would make it a list of lists which is never desirable here.

@gpshead
Copy link
Member

gpshead commented Feb 26, 2018

We do need a Misc/NEWS entry - either adding one saying the previous change was undone, or removing the Misc/NEWS entry that was added for the original change. I've asked Ned on the bug which way we should go with that.

@ned-deily
Copy link
Member

Is this ready to go?

@serhiy-storchaka
Copy link
Member Author

Only if we will decide to revert this feature completely. If we will decide to keep it see the bugfix PR #5914.

@ned-deily
Copy link
Member

I'll give @gpshead a few hours to chime in since it is early in the day for him.

@ned-deily
Copy link
Member

The clock has run out for 3.7.0b2. I'm going to push this and backport it to 3.7. We can decide later what to do for both 3.8 and 3.7.

@ned-deily ned-deily merged commit be50a7b into python:master Feb 27, 2018
@bedevere-bot
Copy link

@ned-deily: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR, and @ned-deily for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 27, 2018
…)" (pythonGH-5912)

* Revert "bpo-31961: subprocess now accepts path-like args (pythonGH-4329)"

This reverts commit dd42cb7.
(cherry picked from commit be50a7b)

Co-authored-by: Serhiy Storchaka <[email protected]>
ned-deily pushed a commit that referenced this pull request Feb 27, 2018
…H-5912) (GH-5931)

* Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)"

This reverts commit dd42cb7.
(cherry picked from commit be50a7b)

Co-authored-by: Serhiy Storchaka <[email protected]>
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Feb 28, 2018
@bedevere-bot
Copy link

GH-5931 is a backport of this pull request to the 3.7 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants