Fix issue 5230 by having pydoc's safeimport check to see if the import
error was thrown from itself in order to decide if the module can't be
found.  Thanks to Lucas Prado Melo for collaborating on the fix and tests.
diff --git a/Misc/NEWS b/Misc/NEWS
index 2985c3a..a4e92f4 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -327,6 +327,10 @@
 Library
 -------
 
+- Issue #5230: pydoc would report no documentation found if a module generated
+  a 'not found' import error when loaded; it now reports the import errors.
+  Thanks to Lucas Prado Melo for initial fix and collaboration on the tests.
+
 - Issue #6314: logging.basicConfig() performs extra checks on the "level"
   argument.