summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-04-15 12:17:13 (GMT)
committerGitHub <noreply@github.com>2018-04-15 12:17:13 (GMT)
commitd7ffa5820733a528d9ab87ee567738e2d3fd7126 (patch)
treec4661e0bb293be14156690a53146fe4ed0dbdaa8 /Python/compile.c
parentdf958ff28af9c5c4563fd1b050f04f0e9745ab80 (diff)
downloadcpython-d7ffa5820733a528d9ab87ee567738e2d3fd7126.zip
cpython-d7ffa5820733a528d9ab87ee567738e2d3fd7126.tar.gz
cpython-d7ffa5820733a528d9ab87ee567738e2d3fd7126.tar.bz2
bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419)
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 82a948105920100ca2ec5c2340bc3890adcfe778) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
Diffstat (limited to 'Python/compile.c')
0 files changed, 0 insertions, 0 deletions