From 97dede0202b1e961bdbe19f7181e0e6652988dae Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 16 Feb 2003 01:12:32 +0000 Subject: Fix for SF 686380, from SF patch 686771 by Ping. (errors trying to get help on os attributes) --- Lib/pydoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12