Commit 29d5bb19 authored by Nick Coghlan's avatar Nick Coghlan

Merged revisions 76312 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76312 | nick.coghlan | 2009-11-16 08:36:47 +1000 (Mon, 16 Nov 2009) | 1 line

  Issue #7328: don't corrupt sys.path when running pydoc with the -m switch
........
parent c3363ba0
...@@ -2254,7 +2254,9 @@ def cli(): ...@@ -2254,7 +2254,9 @@ def cli():
import getopt import getopt
class BadUsage: pass class BadUsage: pass
# Scripts don't get the current directory in their path by default. # Scripts don't get the current directory in their path by default
# unless they are run with the '-m' switch
if '' not in sys.path:
scriptdir = os.path.dirname(sys.argv[0]) scriptdir = os.path.dirname(sys.argv[0])
if scriptdir in sys.path: if scriptdir in sys.path:
sys.path.remove(scriptdir) sys.path.remove(scriptdir)
......
...@@ -26,6 +26,8 @@ Core and Builtins ...@@ -26,6 +26,8 @@ Core and Builtins
Library Library
------- -------
- Issue #7328: pydoc no longer corrupts sys.path when run with the '-m' switch
- Issue #7318: multiprocessing now uses a timeout when it fails to establish - Issue #7318: multiprocessing now uses a timeout when it fails to establish
a connection with another process, rather than looping endlessly. The a connection with another process, rather than looping endlessly. The
default timeout is 20 seconds, which should be amply sufficient for default timeout is 20 seconds, which should be amply sufficient for
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment