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.
N
Nick Coghlan committed
82a948105920100ca2ec5c2340bc3890adcfe778
Parent: 480ab05
Committed by GitHub <noreply@github.com>
on 4/15/2018, 11:52:57 AM