diff -r 50dbe65a1334 -r f00d825fbdb3 eric6/Graphics/ImportsDiagramBuilder.py --- a/eric6/Graphics/ImportsDiagramBuilder.py Sat Sep 21 16:04:17 2019 +0200 +++ b/eric6/Graphics/ImportsDiagramBuilder.py Sat Sep 21 17:41:22 2019 +0200 @@ -78,12 +78,16 @@ @return dictionary of modules contained in the package. """ import Utilities.ModuleParser - extensions = Preferences.getPython("PythonExtensions") + \ + extensions = ( + Preferences.getPython("PythonExtensions") + Preferences.getPython("Python3Extensions") + ) moduleDict = {} modules = [] - for ext in Preferences.getPython("PythonExtensions") + \ - Preferences.getPython("Python3Extensions"): + for ext in ( + Preferences.getPython("PythonExtensions") + + Preferences.getPython("Python3Extensions") + ): modules.extend(glob.glob(Utilities.normjoinpath( self.packagePath, '*{0}'.format(ext)))) @@ -273,9 +277,11 @@ @return flag indicating success (boolean) """ parts = data.split(", ") - if len(parts) != 2 or \ - not parts[0].startswith("package=") or \ - not parts[1].startswith("show_external="): + if ( + len(parts) != 2 or + not parts[0].startswith("package=") or + not parts[1].startswith("show_external=") + ): return False self.packagePath = parts[0].split("=", 1)[1].strip()