eric6/Graphics/ImportsDiagramBuilder.py

changeset 7254
f00d825fbdb3
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- 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()

eric ide

mercurial