--- a/eric6/Utilities/ClassBrowsers/__init__.py Thu Apr 08 17:27:12 2021 +0200 +++ b/eric6/Utilities/ClassBrowsers/__init__.py Thu Apr 08 18:27:47 2021 +0200 @@ -121,6 +121,7 @@ pathname = os.path.join(p, name) if os.path.exists(pathname): return (open(pathname), pathname, (ext, 'r', RB_SOURCE)) + # __IGNORE_WARNING_Y115__ raise ImportError elif ext in __extensions["IDL"]: @@ -128,6 +129,7 @@ pathname = os.path.join(p, name) if os.path.exists(pathname): return (open(pathname), pathname, (ext, 'r', IDL_SOURCE)) + # __IGNORE_WARNING_Y115__ raise ImportError elif ext in __extensions["ProtoBuf"]: @@ -135,6 +137,7 @@ pathname = os.path.join(p, name) if os.path.exists(pathname): return (open(pathname), pathname, (ext, 'r', PROTO_SOURCE)) + # __IGNORE_WARNING_Y115__ raise ImportError elif ext in __extensions["JavaScript"]: @@ -142,6 +145,7 @@ pathname = os.path.join(p, name) if os.path.exists(pathname): return (open(pathname), pathname, (ext, 'r', JS_SOURCE)) + # __IGNORE_WARNING_Y115__ raise ImportError elif ext == '.ptl': @@ -149,6 +153,7 @@ pathname = os.path.join(p, name) if os.path.exists(pathname): return (open(pathname), pathname, (ext, 'r', PTL_SOURCE)) + # __IGNORE_WARNING_Y115__ raise ImportError elif ( @@ -160,6 +165,7 @@ pathname = os.path.join(p, name) if os.path.exists(pathname): return (open(pathname), pathname, (ext, 'r', PY_SOURCE)) + # __IGNORE_WARNING_Y115__ raise ImportError # standard Python module file @@ -172,5 +178,6 @@ if isinstance(spec.loader, importlib.machinery.SourceFileLoader): ext = os.path.splitext(spec.origin)[-1] return (open(spec.origin), spec.origin, (ext, 'r', PY_SOURCE)) + # __IGNORE_WARNING_Y115__ raise ImportError