summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-02-16 01:12:32 (GMT)
committerGuido van Rossum <guido@python.org>2003-02-16 01:12:32 (GMT)
commit97dede0202b1e961bdbe19f7181e0e6652988dae (patch)
tree732ebb7f49241516734413fa4547e2d530031ba7
parent0ae4c4a8235d1e7f614f77b8e343bbbc34e5179b (diff)
downloadcpython-97dede0202b1e961bdbe19f7181e0e6652988dae.zip
cpython-97dede0202b1e961bdbe19f7181e0e6652988dae.tar.gz
cpython-97dede0202b1e961bdbe19f7181e0e6652988dae.tar.bz2
Fix for SF 686380, from SF patch 686771 by Ping. (errors trying to
get help on os attributes)
-rwxr-xr-xLib/pydoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index e27adb9..4513733 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -1303,7 +1303,7 @@ def describe(thing):
def locate(path, forceload=0):
"""Locate an object by name or dotted path, importing as necessary."""
- parts = split(path, '.')
+ parts = [part for part in split(path, '.') if part]
module, n = None, 0
while n < len(parts):
nextmodule = safeimport(join(parts[:n+1], '.'), forceload)