Graphics/ImportsDiagram.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
--- a/Graphics/ImportsDiagram.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/Graphics/ImportsDiagram.py	Fri Mar 11 16:51:57 2011 +0100
@@ -21,6 +21,7 @@
 import Utilities
 import Preferences
 
+
 class ImportsDiagram(UMLDialog):
     """
     Class implementing a dialog showing an imports diagram of a package.
@@ -28,11 +29,11 @@
     Note: Only package internal imports are show in order to maintain
     some readability.
     """
-    def __init__(self, package, parent = None, name = None, showExternalImports = False):
+    def __init__(self, package, parent=None, name=None, showExternalImports=False):
         """
         Constructor
         
-        @param package name of a python package to show the import 
+        @param package name of a python package to show the import
             relationships (string)
         @param parent parent widget of the view (QWidget)
         @param name name of the view widget (string)
@@ -82,8 +83,8 @@
                 progress.setValue(prog)
                 QApplication.processEvents()
                 prog = prog + 1
-                try: 
-                    mod = Utilities.ModuleParser.readModule(module, caching = False)
+                try:
+                    mod = Utilities.ModuleParser.readModule(module, caching=False)
                 except ImportError:
                     continue
                 else:
@@ -211,7 +212,7 @@
         """
         classes.sort()
         impM = ModuleModel(name, classes)
-        impW = ModuleItem(impM, x, y, scene = self.scene)
+        impW = ModuleItem(impM, x, y, scene=self.scene)
         return impW
         
     def __createAssociations(self, shapes):
@@ -238,4 +239,4 @@
         """
         Method to relayout the diagram.
         """
-        self.__buildImports()
\ No newline at end of file
+        self.__buildImports()

eric ide

mercurial