FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-10483: http.server - what is executable on Windows by MaxwellDupre · Pull Request #29624 · python/cpython · GitHub

Repository navigation

bpo-10483: http.server - what is executable on Windows - #29624

Closed
MaxwellDupre wants to merge 10 commits into
python:mainfrom
MaxwellDupre:main
Closed

MaxwellDupre wants to merge 10 commits into
python:mainfrom
MaxwellDupre:main

Conversation

MaxwellDupre commented Nov 18, 2021 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA).

Recognized GitHub username

We couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames:

@MaxwellDupre

This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

MaxwellDupre changed the title Changes for bpo10483 bpo-10483: http.server - what is executable on Windows Dec 4, 2021
Comment thread Lib/http/server.py Outdated
Comment on lines +1040 to +1042
if interp.lower().endswith("w.exe"):
# On Windows, use python.exe, not pythonw.exe
interp = interp[:-5] + interp[-4:]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This check isn't necessary. The child process is spawned using pipes for standard I/O, which works fine with the non-console "pythonw.exe" executable. This is probably left over from when it called os.popen2() (link to Guido's revision that added this code 21 years ago).

Even if it did matter, it should only check for exactly "pythonw.exe" nowadays, e.g. os.path.normcase(os.path.basename(interp)) == os.path.normcase("pythonw.exe").

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I have made the change in local pushed to Github but I cant figure out how to push it to Python/cpython from my copy, can you give me a clue?

MaxwellDupre commented Dec 5, 2021 via email

Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Member

Mike, make the change in your repo, then push the PR to github again.

Comment thread Lib/modulefinder.py
self.replace_paths = replace_paths if replace_paths is not None else []
self.processed_paths = [] # Used in debugging only
self.recurse = recurse

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

no need to set self.recurse twice

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I have made the change in local repro.

Comment thread issue1284670.patch Outdated
@@ -0,0 +1,171 @@
--- a/Lib/modulefinder.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

the issue1284670.patch file should not be part of the PR, and I'm guessing that _bootstrap_python should also not be part of the PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I have tried to delete in my Github copy but I can only delete _bootstrap_python. Github doesn't allow me to delete the patch file in my cpython copy. How do I get rid of it?

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Copy link
Copy Markdown
Member

Please add a NEWS entry (you can use https://blurb-it.herokuapp.com/ for it).

And you also included _bootstrap_python by mistake.

Copy link
Copy Markdown
Contributor Author

Sorry for the mess. Its better I close this PR and I will submit a cleaner PR later. Thanks for your comments.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

6 participants


Back | FazBrowse Home | New Git URL