Index: Lib/pydoc.py =================================================================== --- Lib/pydoc.py (revision 73089) +++ Lib/pydoc.py (working copy) @@ -300,7 +300,7 @@ # A SyntaxError occurred before we could execute the module. raise ErrorDuringImport(value.filename, info) elif exc is ImportError and \ - split(lower(str(value)))[:2] == ['no', 'module']: + split(str(value)) == ['No', 'module','named', path]: # The module was not found. return None else: