diff -r aff39db4dacc -r 7c017076c12e eric6/Utilities/ClassBrowsers/__init__.py --- a/eric6/Utilities/ClassBrowsers/__init__.py Mon Sep 23 19:10:42 2019 +0200 +++ b/eric6/Utilities/ClassBrowsers/__init__.py Mon Sep 23 19:22:12 2019 +0200 @@ -80,9 +80,11 @@ from . import jsclbr dictionary = jsclbr.readmodule_ex(module, path) jsclbr._modules.clear() - elif ext in Preferences.getPython("PythonExtensions") or \ - ext in Preferences.getPython("Python3Extensions") or \ - isPyFile: + elif ( + ext in Preferences.getPython("PythonExtensions") or + ext in Preferences.getPython("Python3Extensions") or + isPyFile + ): from . import pyclbr dictionary = pyclbr.readmodule_ex(module, path, isPyFile=isPyFile) pyclbr._modules.clear() @@ -158,10 +160,12 @@ try: return imp.find_module(name, path) except ImportError: - if name.lower().endswith( + if ( + name.lower().endswith( tuple(Preferences.getPython("PythonExtensions") + - Preferences.getPython("Python3Extensions"))) or \ - isPyFile: + Preferences.getPython("Python3Extensions"))) or + isPyFile + ): for p in path: # search in path pathname = os.path.join(p, name) if os.path.exists(pathname):