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

[3.7] bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419) by miss-islington · Pull Request #6476 · python/cpython · GitHub

Repository navigation

[3.7] bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419) - #6476

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-82a9481-3.7
Apr 15, 2018
Merged

miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-82a9481-3.7

Conversation

miss-islington commented Apr 15, 2018 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

The pydoc CLI assumed -m pydoc would add the empty string
to sys.path, and hence got confused when it switched to
adding the full initial working directory instead.

This refactors the pydoc CLI path manipulation to be
more testable, and ensures it won't accidentally
remove the standard library directory containing
pydoc itself from sys.path.
(cherry picked from commit 82a9481)

Co-authored-by: Nick Coghlan ncoghlan@gmail.com

https://bugs.python.org/issue33185

The pydoc CLI assumed -m pydoc would add the empty string
to sys.path, and hence got confused when it switched to
adding the full initial working directory instead.

This refactors the pydoc CLI path manipulation to be
more testable, and ensures it won't accidentally
remove the standard library directory containing
pydoc itself from sys.path.
(cherry picked from commit 82a9481)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>

Copy link
Copy Markdown
Contributor Author

@ncoghlan: Backport status check is done, and it's a success ✅ .

miss-islington merged commit d7ffa58 into python:3.7 Apr 15, 2018

Copy link
Copy Markdown
Contributor Author

Thanks!

miss-islington deleted the backport-82a9481-3.7 branch April 15, 2018 12:17
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL