Graphics/ApplicationDiagramBuilder.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3035
36e9f388958b
child 3080
6c0a430b19df
--- a/Graphics/ApplicationDiagramBuilder.py	Fri Nov 01 15:48:48 2013 +0100
+++ b/Graphics/ApplicationDiagramBuilder.py	Sun Nov 03 15:58:22 2013 +0100
@@ -107,17 +107,17 @@
         
         # step 1: build a dictionary of packages
         for module in sortedkeys:
-            l = module.split('.')
-            package = '.'.join(l[:-1])
+            li = module.split('.')
+            package = '.'.join(li[:-1])
             if package in packages:
-                packages[package][0].append(l[-1])
+                packages[package][0].append(li[-1])
             else:
-                packages[package] = ([l[-1]], [])
+                packages[package] = ([li[-1]], [])
                 
         # step 2: assign modules to dictionaries and update import relationship
         for module in sortedkeys:
-            l = module.split('.')
-            package = '.'.join(l[:-1])
+            li = module.split('.')
+            package = '.'.join(li[:-1])
             impLst = []
             for i in modules[module].imports:
                 if i in modules:
@@ -156,7 +156,7 @@
                         packageList = shortPackage.split('.')[1:]
                         packageListLen = len(packageList)
                         i = '.'.join(
-                            packageList[:packageListLen - dots + 1] + 
+                            packageList[:packageListLen - dots + 1] +
                             [i[dots:]])
                 
                 if i in modules:
@@ -248,8 +248,8 @@
         for package in shapes:
             for rel in shapes[package][1]:
                 assoc = AssociationItem(
-                        shapes[package][0], shapes[rel][0],
-                        Imports)
+                    shapes[package][0], shapes[rel][0],
+                    Imports)
                 self.scene.addItem(assoc)
     
     def getPersistenceData(self):

eric ide

mercurial