]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
autoflake remove unused imports, useless pass, unused vars gb262689/sandbox
authorGbkng <guillaume.brooking@gmail.com>
Wed, 20 Dec 2023 11:08:19 +0000 (12:08 +0100)
committerGbkng <guillaume.brooking@gmail.com>
Wed, 20 Dec 2023 11:37:42 +0000 (12:37 +0100)
125 files changed:
AllTestLauncherSat.py
commands/application.py
commands/compile.py
commands/config.py
commands/install.py
commands/jobs.py
commands/launcher.py
commands/package.py
commands/patch.py
commands/prepare.py
commands/source.py
commands/source_update.py
commands/upgrade.py
data/templates/CppSalome6/src/Cpp_Template_/Cpp_Template__TEST/Cpp_Template__test.py
data/templates/CppSalome7/src/Cpp_Template_/Cpp_Template__TEST/Cpp_Template__test.py
data/templates/CppSalome78/src/Cpp_Template_/Cpp_Template__TEST/Cpp_Template__test.py
data/templates/CppSalome8/src/Cpp_Template_/Cpp_Template__TEST/Cpp_Template__test.py
data/templates/Cpp_Template/src/Cpp_Template_/Cpp_Template__TEST/Cpp_Template__test.py
data/templates/Cpp_Template_med2/src/Cpp_Template_/Cpp_Template__TEST/Cpp_Template__test.py
data/templates/Cpp_Template_stda/src/Cpp_Template_/Cpp_Template__TEST/Cpp_Template__test.py
data/templates/PythonComponent/src/Controller/Controller.py
data/templates/PythonComponent/src/Dialog/CreateCircleDialog.py
data/templates/PythonComponent/src/Dialog/CreatePolylineDialog.py
data/templates/PythonComponent/src/Dialog/Dialog.py
data/templates/PythonComponent/src/Dialog/DialogEdit.py
data/templates/PythonComponent/src/Dialog/EditCenterDialog.py
data/templates/PythonComponent/src/Dialog/EditPointDialog.py
data/templates/PythonComponent/src/Dialog/EditRadiusDialog.py
data/templates/PythonComponent/src/Dialog/RenameDialog.py
data/templates/PythonComponent/src/Model/Circle.py
data/templates/PythonComponent/src/Model/Model.py
data/templates/PythonComponent/src/Model/Polyline.py
data/templates/PythonComponent/src/PYCMP/PYCMP.py
data/templates/PythonComponent/src/PYCMP/PYCMP_utils.py
data/templates/PythonComponent/src/PYCMPGUI/PYCMPDesktop.py
data/templates/PythonComponent/src/PYCMPGUI/PYCMPGUI.py
data/templates/PythonComponent/src/StandAlone/Desktop.py
data/templates/PythonComponent/src/StandAlone/StandalonePYCMPGUI.py
data/templates/PythonComponent/src/View/CircleGraphicsScene.py
data/templates/PythonComponent/src/View/CircleTreeWidgetItem.py
data/templates/PythonComponent/src/View/GraphicsRectItem.py
data/templates/PythonComponent/src/View/GraphicsScene.py
data/templates/PythonComponent/src/View/GraphicsView.py
data/templates/PythonComponent/src/View/Menu.py
data/templates/PythonComponent/src/View/PolyGraphicsScene.py
data/templates/PythonComponent/src/View/PolyTreeWidgetItem.py
data/templates/PythonComponent/src/View/TreeWidget.py
data/templates/PythonComponent/src/View/TreeWidgetItem.py
data/templates/PythonComponent/src/View/View.py
data/templates/PythonComponent8/src/Controller/Controller.py
data/templates/PythonComponent8/src/Dialog/CreateCircleDialog.py
data/templates/PythonComponent8/src/Dialog/CreatePolylineDialog.py
data/templates/PythonComponent8/src/Dialog/Dialog.py
data/templates/PythonComponent8/src/Dialog/DialogEdit.py
data/templates/PythonComponent8/src/Dialog/EditCenterDialog.py
data/templates/PythonComponent8/src/Dialog/EditPointDialog.py
data/templates/PythonComponent8/src/Dialog/EditRadiusDialog.py
data/templates/PythonComponent8/src/Dialog/RenameDialog.py
data/templates/PythonComponent8/src/Model/Circle.py
data/templates/PythonComponent8/src/Model/Model.py
data/templates/PythonComponent8/src/Model/Polyline.py
data/templates/PythonComponent8/src/PYCMP/PYCMP.py
data/templates/PythonComponent8/src/PYCMP/PYCMP_utils.py
data/templates/PythonComponent8/src/PYCMPGUI/PYCMPDesktop.py
data/templates/PythonComponent8/src/PYCMPGUI/PYCMPGUI.py
data/templates/PythonComponent8/src/StandAlone/Desktop.py
data/templates/PythonComponent8/src/StandAlone/StandalonePYCMPGUI.py
data/templates/PythonComponent8/src/View/CircleGraphicsScene.py
data/templates/PythonComponent8/src/View/CircleTreeWidgetItem.py
data/templates/PythonComponent8/src/View/GraphicsRectItem.py
data/templates/PythonComponent8/src/View/GraphicsScene.py
data/templates/PythonComponent8/src/View/GraphicsView.py
data/templates/PythonComponent8/src/View/Menu.py
data/templates/PythonComponent8/src/View/PolyGraphicsScene.py
data/templates/PythonComponent8/src/View/PolyTreeWidgetItem.py
data/templates/PythonComponent8/src/View/TreeWidget.py
data/templates/PythonComponent8/src/View/TreeWidgetItem.py
data/templates/PythonComponent8/src/View/View.py
doc/src/conf.py
src/ElementTreePython3.py
src/__init__.py
src/callerName.py
src/colorama/win32.py
src/debug.py
src/environment.py
src/fork.py
src/i18n/i18nTest.py
src/loggingSimple.py
src/product.py
src/pyconf.py
src/salomeTools.py
src/test/TOOLS.py
src/test/scriptTemplate.py
src/test_module.py
src/utilsSat.py
src/versionMinorMajorPatch.py
src/xmlManager.py
test/test_020_debug.py
test/test_021_versionMinorMajorPatch.py
test/test_024_logging.py
test/test_035_pyconf.py
test/test_100_satHelp.py
test/test_500_APPLI_TEST.py
test/test_501_paramiko.py
test/test_sat5_0/compilation/test_compilation.py
test/test_sat5_0/compilation/test_configure.py
test/test_sat5_0/compilation/test_make.py
test/test_sat5_0/compilation/test_makeinstall.py
test/test_sat5_0/config/test_create_user_pyconf.py
test/test_sat5_0/config/test_option_copy.py
test/test_sat5_0/config/test_option_edit.py
test/test_sat5_0/config/test_option_value.py
test/test_sat5_0/config/test_option_value_2.py
test/test_sat5_0/environ/test_environ.py
test/test_sat5_0/job/test_job.py
test/test_sat5_0/jobs/test_jobs.py
test/test_sat5_0/log/test_launch_browser.py
test/test_sat5_0/log/test_launch_browser2.py
test/test_sat5_0/prepare/test_clean.py
test/test_sat5_0/prepare/test_patch.py
test/test_sat5_0/prepare/test_prepare.py
test/test_sat5_0/prepare/test_source.py
test/test_sat5_0/shell/test_shell.py
test/test_sat5_0/test/test_command.py
unittestpy/HTMLTestRunner.py

index 6c1740ae68e12225cff88419e864f7daa43ee93d..550c9ea444a600a5416596e81e02a0008ebcd810 100755 (executable)
@@ -55,7 +55,6 @@ import unittest
 import traceback
 import argparse as AP
 
-import glob
 import fnmatch
 import pprint as PP  # pretty print
 import src
@@ -225,7 +224,7 @@ def runOnArgs(args):
                 del sys.path[0]
                 done = False
                 filesForTest[aFile] = (aImport, aModule)
-        except Exception as e:
+        except Exception:
             if done:
                 del sys.path[0]  # attention of sys.path appends
                 done = False
@@ -252,10 +251,8 @@ def runOnArgs(args):
             errPrint("Test: %s %s" % (i, k))
         if i == 0:
             suite = loader.loadTestsFromModule(filesForTest[k][1])
-            pass
         else:
             suite.addTests(loader.loadTestsFromModule(filesForTest[k][1]))
-            pass
 
     if args.type == "std":
         runner = unittest.TextTestRunner(verbosity=args.verbosity)
index 1a2a67f7af79eea53944226a15dcfff11e9da6de..161410c5a6cc5a07f67a8cd1b91cb054fb25c101 100644 (file)
@@ -17,7 +17,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import stat
 import sys
 import shutil
 import subprocess
index 72e6af4a324e571670a9387c0220087dacd66c2c..912faae3993b2e616d7d13072e28e84fbb32c9e0 100644 (file)
@@ -633,7 +633,6 @@ def compile_product_pip(sat, p_name_info, config, options, logger, header, len_e
     p_name, p_info = p_name_info
     res = 0
     error_step = ""
-    pip_install_in_python = False
     pip_wheels_dir = os.path.join(config.LOCAL.archive_dir, "wheels")
     pip_install_cmd = (
         config.INTERNAL.command.pip_install
@@ -698,7 +697,6 @@ def compile_product_pip(sat, p_name_info, config, options, logger, header, len_e
                 p_info.name,
                 p_info.version,
             )
-        pip_install_in_python = True
     else:
         # pip will install product in product install_dir
         pip_install_dir = os.path.join(
@@ -971,8 +969,6 @@ def run(args, runner, logger):
 
     # Use the sorted list of all products to sort the list of products we have to compile
     sorted_product_list = []
-    product_list_runtime = []
-    product_list_compiletime = []
 
     # store at beginning compile time products, we need to compile them before!
     for n in sorted_nodes:
index a36fcfc33be324bd0c5543e5f0deb90540a20bd2..ca0183be7581f5188b2c95b0d687b8f30ee115e0 100644 (file)
@@ -1133,7 +1133,7 @@ def show_properties(config, logger):
                         ),
                         1,
                     )
-            except Exception as e:
+            except Exception:
                 pass
         except Exception as e:
             # logger.write(src.printcolors.printcInfo("    %s\n" % "no properties"), 1)
@@ -1314,7 +1314,7 @@ def run(args, runner, logger):
                     "\nConfig.%s of application %s:\n\n%s\n"
                     % (od, runner.cfg.VARS.application, res)
                 )
-            except Exception as e:
+            except Exception:
                 msg = "\nConfig.%s of application %s: Unknown pyconf key\n" % (
                     od,
                     runner.cfg.VARS.application,
@@ -1509,4 +1509,3 @@ def run(args, runner, logger):
     # check system prerequisites
     if options.check_system:
         check_install_system(runner.cfg, logger)
-        pass
index 92302797be2be49a279451543442940d5a698bb1..7368e04c3c6773b42a9c3d8b6fb446d709ebf6e3 100644 (file)
@@ -18,8 +18,6 @@
 
 import os
 import shutil
-import re
-import subprocess
 
 import src
 import prepare
index 7c9347d9a716fd9082cdbcfbcb273fc9a0a81119..6b436c8315c7f99577b42d98eb9488ec4c13ab17 100644 (file)
@@ -32,7 +32,6 @@ try:
     import paramiko
 except:
     paramiko = "import paramiko impossible"
-    pass
 
 import src
 
index 35057bf61e89998268208696e56de2a372c75949..6e7f7d6e6c6bc9805a283d080124b787aae50d28 100644 (file)
@@ -17,7 +17,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import platform
 import shutil
 import getpass
 import subprocess
index 383232ae2c30e32b30a5f185e76f7b696f6ef064..7d922017c98c5e940fcab0ad49ad488746b9aeff 100644 (file)
@@ -392,7 +392,7 @@ def produce_relative_launcher(config, logger, file_dir, file_name, binaries_dir_
     additional_env["ABSOLUTE_APPLI_PATH"] = (
         "out_dir_Path" + config.VARS.sep + app_root_dir
     )
-    launcher_name = src.get_launcher_name(config)
+    src.get_launcher_name(config)
     additional_env["APPLI"] = "out_dir_Path" + config.VARS.sep + file_name
 
     # create an environment file writer
index b1fe135bdad4c7f033e14c80f6b8edf7f078f4b0..8b473ba301a2aed98ab886b5069050c5541338c4 100644 (file)
@@ -18,7 +18,6 @@
 
 import os
 import subprocess
-import re
 
 import src
 import prepare
index 18f04281e258b4bdedc6071c7dd87756240cda5d..6b64bbfc1a25db2f1d80becee71ec9b7cdfef7d7 100644 (file)
@@ -16,9 +16,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
-import re
 import os
-import pprint as PP
 
 import src
 import src.debug as DBG
index 8a78ee6b0bc4baa9cd6537593c1d6b073ced153c..c674d51d51d6398d960482b1220934f5f130df59 100644 (file)
@@ -18,8 +18,6 @@
 
 import os
 import shutil
-import re
-import subprocess
 
 import src
 import prepare
index 95e6ae147aa8b9680ec745ec0b3aeefe487887d1..e66a42206b8b023947fecc1634e4b11ee7339586 100644 (file)
@@ -18,8 +18,6 @@
 
 import os
 import shutil
-import re
-import subprocess
 
 import src
 import prepare
index 7f301d7b62723df79e417163875e91edf5a0666d..517ad89970fb474f48fbee12fd99ec2b46a6ce01 100644 (file)
@@ -17,7 +17,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import re
 import subprocess
 import src
 import src.debug as DBG
@@ -614,7 +613,6 @@ def upgrade_product_pip(sat, p_name_info, config, options, logger, header, len_e
     p_name, p_info = p_name_info
     res = 0
     error_step = ""
-    pip_install_in_python = False
     pip_wheels_dir = os.path.join(config.LOCAL.archive_dir, "wheels")
     pip_install_cmd = (
         config.INTERNAL.command.pip_install
@@ -679,7 +677,6 @@ def upgrade_product_pip(sat, p_name_info, config, options, logger, header, len_e
                 p_info.name,
                 p_info.version,
             )
-        pip_install_in_python = True
     else:
         # pip will install product in product install_dir
         pip_install_dir = os.path.join(
@@ -939,8 +936,6 @@ def run(args, runner, logger):
 
     # Use the sorted list of all products to sort the list of products we have to upgrade
     sorted_product_list = []
-    product_list_runtime = []
-    product_list_compiletime = []
 
     # store at beginning compile time products, we need to compile them before!
     for n in sorted_nodes:
index 05414cbbc5fa6bc6e6a1c189e74725c9ca9f8319..c3df35088710cc0f564873f4b2dcb28e4fd2fc36 100644 (file)
@@ -7,7 +7,6 @@ if getenv("SALOMEPATH"):
 else:
     import :sat:{Cpp_Template_}SWIG
     my_:sat:{Cpp_Template_}=:sat:{Cpp_Template_}SWIG.:sat:{Cpp_Template_}()
-pass
 #
 #
 print "Test Program of :sat:{Cpp_Template_} component"
index 05414cbbc5fa6bc6e6a1c189e74725c9ca9f8319..c3df35088710cc0f564873f4b2dcb28e4fd2fc36 100644 (file)
@@ -7,7 +7,6 @@ if getenv("SALOMEPATH"):
 else:
     import :sat:{Cpp_Template_}SWIG
     my_:sat:{Cpp_Template_}=:sat:{Cpp_Template_}SWIG.:sat:{Cpp_Template_}()
-pass
 #
 #
 print "Test Program of :sat:{Cpp_Template_} component"
index 05414cbbc5fa6bc6e6a1c189e74725c9ca9f8319..c3df35088710cc0f564873f4b2dcb28e4fd2fc36 100644 (file)
@@ -7,7 +7,6 @@ if getenv("SALOMEPATH"):
 else:
     import :sat:{Cpp_Template_}SWIG
     my_:sat:{Cpp_Template_}=:sat:{Cpp_Template_}SWIG.:sat:{Cpp_Template_}()
-pass
 #
 #
 print "Test Program of :sat:{Cpp_Template_} component"
index 05414cbbc5fa6bc6e6a1c189e74725c9ca9f8319..c3df35088710cc0f564873f4b2dcb28e4fd2fc36 100644 (file)
@@ -7,7 +7,6 @@ if getenv("SALOMEPATH"):
 else:
     import :sat:{Cpp_Template_}SWIG
     my_:sat:{Cpp_Template_}=:sat:{Cpp_Template_}SWIG.:sat:{Cpp_Template_}()
-pass
 #
 #
 print "Test Program of :sat:{Cpp_Template_} component"
index 05414cbbc5fa6bc6e6a1c189e74725c9ca9f8319..c3df35088710cc0f564873f4b2dcb28e4fd2fc36 100644 (file)
@@ -7,7 +7,6 @@ if getenv("SALOMEPATH"):
 else:
     import :sat:{Cpp_Template_}SWIG
     my_:sat:{Cpp_Template_}=:sat:{Cpp_Template_}SWIG.:sat:{Cpp_Template_}()
-pass
 #
 #
 print "Test Program of :sat:{Cpp_Template_} component"
index 05414cbbc5fa6bc6e6a1c189e74725c9ca9f8319..c3df35088710cc0f564873f4b2dcb28e4fd2fc36 100755 (executable)
@@ -7,7 +7,6 @@ if getenv("SALOMEPATH"):
 else:
     import :sat:{Cpp_Template_}SWIG
     my_:sat:{Cpp_Template_}=:sat:{Cpp_Template_}SWIG.:sat:{Cpp_Template_}()
-pass
 #
 #
 print "Test Program of :sat:{Cpp_Template_} component"
index 05414cbbc5fa6bc6e6a1c189e74725c9ca9f8319..c3df35088710cc0f564873f4b2dcb28e4fd2fc36 100755 (executable)
@@ -7,7 +7,6 @@ if getenv("SALOMEPATH"):
 else:
     import :sat:{Cpp_Template_}SWIG
     my_:sat:{Cpp_Template_}=:sat:{Cpp_Template_}SWIG.:sat:{Cpp_Template_}()
-pass
 #
 #
 print "Test Program of :sat:{Cpp_Template_} component"
index 81db59176bedea8663879cc3cdd5804c9f8903de..7dc2e6caaa7722acba4bea7570ed3ac4f78e517c 100755 (executable)
@@ -12,7 +12,6 @@ class Controller:
         self._mainFrame = MainFrame
         self._nbPolylines = 0
         self._nbCircles = 0
-        pass
 
     def getModels(self):
         return self._models
@@ -25,14 +24,12 @@ class Controller:
 
     def setNbPolylines(self, n):
         self._nbPolylines = n
-        pass
 
     def getNbCircles(self):
         return self._nbCircles
 
     def setNbCircles(self, n):
         self._nbCircles = n
-        pass
 
     def createPolyline(self, name, randomNumberOfPoints):
         """Creates a Polyline object nammed name with randomNumberOfPoints points"""
@@ -47,7 +44,6 @@ class Controller:
             y = random.uniform(0, x)
             point = x, y
             points.append(point)
-            pass
 
         myPolyline = Polyline(name, points, self)
         self._models.append(myPolyline)
@@ -68,7 +64,6 @@ class Controller:
 
     def showModel(self, model):
         model.updateViews(mode="showing")
-        pass
 
     def editName(self, model, name):
         model.setName(name)
@@ -92,15 +87,11 @@ class Controller:
 
     def removeModel(self, model):
         model.updateViews(mode="supression")
-        index = self._models.index(model)
+        self._models.index(model)
         del model
-        pass
 
     def saveListOfModels(self):
         for model in self._models:
             model.save()
-            pass
-        pass
 
 
-pass
index 1cc1818172eb70f674be041866a2f54837eaa9b9..67f10ccc7ddea125270c549a4c2f217f5d773e96 100755 (executable)
@@ -12,7 +12,6 @@ class CreateCircleDialog(Dialog):
         # Setting default name
         nbCircles = controller.getNbCircles()
         self.entryName.setText("circle_" + str(nbCircles + 1))
-        pass
 
     def addSpecialWidgets(self):
         floatValidator = QDoubleValidator(self)
@@ -36,7 +35,6 @@ class CreateCircleDialog(Dialog):
         self.entryRadius.setValidator(floatValidator)
         self.entryRadius.setText("10")
         self.v12.addWidget(self.entryRadius)
-        pass
 
     def execApply(self):
         name = self.name
@@ -51,7 +49,6 @@ class CreateCircleDialog(Dialog):
         self.xCenter = str(self.entryxCenter.text())
         self.yCenter = str(self.entryyCenter.text())
         self.radius = str(self.entryRadius.text())
-        pass
 
     def checkUserEntries(self):
         if (
@@ -70,7 +67,5 @@ class CreateCircleDialog(Dialog):
         self.entryxCenter.setText("0")
         self.entryyCenter.setText("0")
         self.entryRadius.setText("10")
-        pass
 
 
-pass
index e09946a62dac0c3b4f3e1dc9ed4e4c249dfdc93b..e6d953c2eb8731a0fad849b1917f335a3eff65f5 100755 (executable)
@@ -12,7 +12,6 @@ class CreatePolylineDialog(Dialog):
         # Setting default name
         nbPolylines = controller.getNbPolylines()
         self.entryName.setText("polyline_" + str(nbPolylines + 1))
-        pass
 
     def addSpecialWidgets(self):
 
@@ -25,7 +24,6 @@ class CreatePolylineDialog(Dialog):
         self.entryNbPoints.setValidator(intValidator)
         self.entryNbPoints.setText("10")
         self.v12.addWidget(self.entryNbPoints)
-        pass
 
     def execApply(self):
         name = self.name
@@ -37,7 +35,6 @@ class CreatePolylineDialog(Dialog):
     def retrieveUserEntries(self):
         self.name = str(self.entryName.text())
         self.nbPoints = str(self.entryNbPoints.text())
-        pass
 
     def checkUserEntries(self):
         if self.name == "" or self.nbPoints == "":
@@ -52,7 +49,5 @@ class CreatePolylineDialog(Dialog):
         nbPolylines = self.getController().getNbPolylines()
         self.entryName.setText("polyline_" + str(nbPolylines + 1))
         self.entryNbPoints.setText("10")
-        pass
 
 
-pass
index fc7eaa8a7d97c1950de870e82be213acbb9622ff..c4b8853708e71a6e4eaa39e17831596fe93ac147 100755 (executable)
@@ -33,7 +33,6 @@ class Dialog(QDialog):
 
         # Connecting widgets to slots
         self.connectSlots()
-        pass
 
     def getController(self):
         return self._controller
@@ -53,17 +52,14 @@ class Dialog(QDialog):
         self.h2.addWidget(self.bClose)
         self.bHelp = QPushButton("Help", self)
         self.h2.addWidget(self.bHelp)
-        pass
 
     def addSpecialWidgets(self):
         print("Virtual method")
-        pass
 
     def connectSlots(self):
         self.bApply.clicked.connect(self.apply)
         self.bHelp.clicked.connect(self.help)
         self.bClose.clicked.connect(self.close)
-        pass
 
     def apply(self):
 
@@ -76,7 +72,6 @@ class Dialog(QDialog):
 
     def retrieveUserEntries(self):
         self.name = str(self.entryName.text())
-        pass
 
     def checkUserEntries(self):
         if self.name == "":
@@ -86,21 +81,16 @@ class Dialog(QDialog):
 
     def execApply(self):
         print("Virtual method")
-        pass
 
     def reInitializeDialog(self):
         print("Virtual method")
-        pass
 
     def help(self):
         import os
 
         os.system("firefox " + self._helpFile + "&")
-        pass
 
     def close(self):
         self._widgetDialogBox.close()
-        pass
 
 
-pass
index c76563b5c5573c0000a50b022ad49c8bdf0cd693..14cce608bc9887097f0e080a41dbacc2e1cc8d21 100755 (executable)
@@ -33,7 +33,6 @@ class DialogEdit(QDialog):
 
         # Connecting widgets to slots
         self.connectSlots()
-        pass
 
     def getController(self):
         return self._controller
@@ -47,17 +46,14 @@ class DialogEdit(QDialog):
         self.h2.addWidget(self.bCancel)
         self.bHelp = QPushButton("Help", self)
         self.h2.addWidget(self.bHelp)
-        pass
 
     def addSpecialWidgets(self):
         print("Virtual method")
-        pass
 
     def connectSlots(self):
         self.bOk.clicked.connect(self.apply)
         self.bHelp.clicked.connect(self.help)
         self.bCancel.clicked.connect(self.close)
-        pass
 
     def apply(self):
         self.retrieveUserEntries()
@@ -70,7 +66,6 @@ class DialogEdit(QDialog):
 
     def retrieveUserEntries(self):
         print("Virtual method")
-        pass
 
     def checkUserEntries(self):
         print("Virtual method")
@@ -78,17 +73,13 @@ class DialogEdit(QDialog):
 
     def execApply(self):
         print("Virtual method")
-        pass
 
     def help(self):
         import os
 
         os.system("firefox " + self._helpFile + "&")
-        pass
 
     def close(self):
         self._widgetDialogBox.close()
-        pass
 
 
-pass
index d6a9d03a750337366ad9b6f64268b485c24a575f..b410191056d9e69c81c61c22718a2286a79a5327 100755 (executable)
@@ -18,13 +18,10 @@ class EditCenterDialog(DialogEdit):
         while oldCenter[i] != ":":
             oldX += oldCenter[i]
             i += 1
-            pass
         for j in range(i + 1, len(oldCenter)):
             oldY += oldCenter[j]
-            pass
         self.entryX.setText(oldX)
         self.entryY.setText(oldY)
-        pass
 
     def addSpecialWidgets(self):
         floatValidator = QDoubleValidator(self)
@@ -40,7 +37,6 @@ class EditCenterDialog(DialogEdit):
         self.entryY = QLineEdit(self)
         self.entryY.setValidator(floatValidator)
         self.v12.addWidget(self.entryY)
-        pass
 
     def execApply(self):
         newX = float(self.newX)
@@ -52,7 +48,6 @@ class EditCenterDialog(DialogEdit):
     def retrieveUserEntries(self):
         self.newX = str(self.entryX.text())
         self.newY = str(self.entryY.text())
-        pass
 
     def checkUserEntries(self):
         if self.newX == "" or self.newY == "":
@@ -61,4 +56,3 @@ class EditCenterDialog(DialogEdit):
         return True
 
 
-pass
index 1c83890cf400578c05d92368e4cea183eaff01ac..7936f3f4b62079e0abdb554c47220f52bad2c605 100755 (executable)
@@ -20,14 +20,11 @@ class EditPointDialog(DialogEdit):
         while oldPoint[i] != ":":
             oldX += oldPoint[i]
             i += 1
-            pass
         for j in range(i + 1, len(oldPoint)):
             oldY += oldPoint[j]
-            pass
         self.pointRange = pointRange
         self.entryX.setText(oldX)
         self.entryY.setText(oldY)
-        pass
 
     def addSpecialWidgets(self):
         floatValidator = QDoubleValidator(self)
@@ -43,7 +40,6 @@ class EditPointDialog(DialogEdit):
         self.entryY = QLineEdit(self)
         self.entryY.setValidator(floatValidator)
         self.v12.addWidget(self.entryY)
-        pass
 
     def execApply(self):
         pointRange = self.pointRange
@@ -56,7 +52,6 @@ class EditPointDialog(DialogEdit):
     def retrieveUserEntries(self):
         self.newX = str(self.entryX.text())
         self.newY = str(self.entryY.text())
-        pass
 
     def checkUserEntries(self):
         if self.newX == "" or self.newY == "":
@@ -65,4 +60,3 @@ class EditPointDialog(DialogEdit):
         return True
 
 
-pass
index a9c43c8c5971c548f66c5543bf0760c7a7d740b3..4374704b24c18ab8da7823661a38dc0d86f62010 100755 (executable)
@@ -11,7 +11,6 @@ class EditRadiusDialog(DialogEdit):
 
         self._model = model
         self.entryRadius.setText(oldRadius)
-        pass
 
     def addSpecialWidgets(self):
         floatValidator = QDoubleValidator(self)
@@ -21,7 +20,6 @@ class EditRadiusDialog(DialogEdit):
         self.entryRadius = QLineEdit(self)
         self.entryRadius.setValidator(floatValidator)
         self.v12.addWidget(self.entryRadius)
-        pass
 
     def execApply(self):
         newRadius = self.newRadius
@@ -30,7 +28,6 @@ class EditRadiusDialog(DialogEdit):
 
     def retrieveUserEntries(self):
         self.newRadius = str(self.entryRadius.text())
-        pass
 
     def checkUserEntries(self):
         if self.newRadius == "":
@@ -39,4 +36,3 @@ class EditRadiusDialog(DialogEdit):
         return True
 
 
-pass
index 6ff291bc22e9e90c01dec7c467faff71ab1946c5..43476903adf5281b6b466f38911f300cbe694ae9 100755 (executable)
@@ -11,14 +11,12 @@ class RenameDialog(DialogEdit):
 
         self._model = model
         self.entryName.setText(oldName)
-        pass
 
     def addSpecialWidgets(self):
         lName = QLabel("Name", self)
         self.v11.addWidget(lName)
         self.entryName = QLineEdit(self)
         self.v12.addWidget(self.entryName)
-        pass
 
     def execApply(self):
         newName = self.newName
@@ -27,7 +25,6 @@ class RenameDialog(DialogEdit):
 
     def retrieveUserEntries(self):
         self.newName = str(self.entryName.text())
-        pass
 
     def checkUserEntries(self):
         if self.newName == "":
@@ -36,4 +33,3 @@ class RenameDialog(DialogEdit):
         return True
 
 
-pass
index 0f252b8b4a615240ed8cfdbd128caf8f2ba3e214..89a662d4916c91adcac650ab565c4db9237d9cb3 100755 (executable)
@@ -16,14 +16,12 @@ class Circle(Model):
         self._radius = radius
         self.addTreeWidgetItem(self.getName(), controller)
         self.addGraphicScene(controller)
-        pass
 
     def getCenter(self):
         return self._center[0], self._center[1]
 
     def setCenter(self, center):
         self._center = center
-        pass
 
     def getRadius(self):
         return self._radius
@@ -62,4 +60,3 @@ class Circle(Model):
         pass
 
 
-pass
index 3861780db2fe70890d192f26bc278594338754fb..f47db39cf89ade0a948e1e23d1512bbb8d0d4432 100755 (executable)
@@ -7,14 +7,12 @@ class Model:
 
         self._name = None
         self._views = []
-        pass
 
     def getName(self):
         return self._name
 
     def setName(self, name):
         self._name = name
-        pass
 
     def getViews(self):
         return self._views
@@ -30,7 +28,5 @@ class Model:
 
     def save(self):
         print("Virtual method")
-        pass
 
 
-pass
index 810ffcb7fecda111f269857a260529561f5557ca..2641dd7f8c778371d609169f2636e91809d3db39 100755 (executable)
@@ -11,18 +11,15 @@ class Polyline(Model):
         self._points = points
         self.addTreeWidgetItem(self.getName(), controller)
         self.addGraphicScene(controller)
-        pass
 
     def getPoints(self):
         return self._points
 
     def setPoints(self, points):
         self._points = points
-        pass
 
     def editPoint(self, pointRange, newPoint):
         self._points[pointRange] = newPoint
-        pass
 
     def addTreeWidgetItem(self, name, controller):
         from PolyTreeWidgetItem import PolyTreeWidgetItem
@@ -39,7 +36,6 @@ class Polyline(Model):
                 str(x) + ":" + str(y), controller, ["Edit"]
             )
             myTreeWidgetItem.addChild(newTreeWidgetItem)
-            pass
         myTreeWidgetItem.setModel(self)
         self.getViews().append(myTreeWidgetItem)
         return myTreeWidgetItem
@@ -56,4 +52,3 @@ class Polyline(Model):
         pass
 
 
-pass
index 51afc58cfa6fc3124d3b88761321c8480ccb4510..47d43f98f88649563cc320a30d3b1ea1a8554262 100755 (executable)
@@ -49,7 +49,6 @@ class :sat:{PYCMP}(:sat:{PYCMP}_ORB__POA.:sat:{PYCMP}_Gen,
         #
         self._naming_service = SALOME_ComponentPy.SALOME_NamingServicePy_i( self._orb )
         #
-        pass
 
     """
     Touch the component
@@ -69,7 +68,6 @@ class :sat:{PYCMP}(:sat:{PYCMP}_ORB__POA.:sat:{PYCMP}_Gen,
         attr.SetValue( name )
         attr    = builder.FindOrCreateAttribute( object, "AttributeLocalID" )
         attr.SetValue( objectID() )
-        pass
 
     """
     Dump module data to the Python script.
@@ -85,8 +83,6 @@ class :sat:{PYCMP}(:sat:{PYCMP}_ORB__POA.:sat:{PYCMP}_Gen,
                 name = iter.Value().GetName()
                 if name: names.append( name )
                 iter.Next()
-                pass
-            pass
         if names:
             abuffer += [ "  from batchmode_salome import lcc" ]
             abuffer += [ "  import :sat:{PYCMP}_ORB" ]
@@ -94,7 +90,6 @@ class :sat:{PYCMP}(:sat:{PYCMP}_ORB__POA.:sat:{PYCMP}_Gen,
             abuffer += [ "  myCompo = lcc.FindOrLoadComponent( 'FactoryServerPy', '%s' )" % moduleName() ]
             abuffer += [ "  " ]
             abuffer += [ "  myCompo.createObject( theStudy, '%s' )" % name for name in names ]
-            pass
         abuffer += [ "  " ]
         abuffer.append( "  pass" )
         abuffer.append( "\0" )
index 56e155787b66ba1cd434368deb74a3edd722aa5f..e9d91713f5d7f478ad65c8e30f433252b3089869 100755 (executable)
@@ -90,8 +90,6 @@ def verbose():
             __verbose__ = int( os.getenv( 'SALOME_VERBOSE', 0 ) )
         except:
             __verbose__ = 0
-            pass
-        pass
     return __verbose__
 
 ###
@@ -102,7 +100,6 @@ def getORB():
     global __orb__
     if __orb__ is None:
         __orb__ = CORBA.ORB_init( [''], CORBA.ORB_ID )
-        pass
     return __orb__
 
 ###
@@ -113,7 +110,6 @@ def getNS():
     global __naming_service__
     if __naming_service__ is None:
         __naming_service__ = SALOME_NamingServicePy_i( getORB() )
-        pass
     return __naming_service__
 
 ##
@@ -124,7 +120,6 @@ def getLCC():
     global __lcc__
     if __lcc__ is None:
         __lcc__ = LifeCycleCORBA( getORB() )
-        pass
     return __lcc__
 
 ##
@@ -136,7 +131,6 @@ def getStudyManager():
     if __study_manager__ is None:
         obj = getNS().Resolve( '/myStudyManager' )
         __study_manager__ = obj._narrow( SALOMEDS.StudyManager )
-        pass
     return __study_manager__
 
 ###
@@ -147,7 +141,6 @@ def getEngine():
     global __engine__
     if __engine__ is None:
         __engine__ = getLCC().FindOrLoadComponent( "FactoryServerPy", moduleName() )
-        pass
     return __engine__
 
 ###
@@ -157,7 +150,6 @@ def getEngineIOR():
     IOR = ""
     if getORB() and getEngine():
         IOR = getORB().object_to_string( getEngine() )
-        pass
     return IOR
 
 ###
@@ -176,10 +168,8 @@ def findOrCreateComponent( study ):
         attr.SetValue( moduleID() )
         try:
             builder.DefineComponentInstance( father, getEngine() )
-            pass
         except:
             pass
-        pass
     return father
 
 ###
@@ -192,6 +182,4 @@ def getObjectID( study, entry ):
         if sobj is not None:
             test, anAttr = sobj.FindAttribute( "AttributeLocalID" )
             if test: ID = anAttr._narrow( SALOMEDS.AttributeLocalID ).Value()
-            pass
-        pass
     return ID
index dcc57f72ee17dbeba6aa718ad56b3790856ad74a..58940d8badbcc8126a7ab7333bbb227a8eafb94b 100755 (executable)
@@ -25,7 +25,6 @@ class :sat:{PYCMP}Desktop( QMainWindow ) :
 
        self.createTreeView()
        self.createGraphicsView()
-       pass
 
    def createTreeView( self ) :
        self._globalTree= TreeWidget( self )
@@ -35,19 +34,16 @@ class :sat:{PYCMP}Desktop( QMainWindow ) :
        self._dockGlobalTree.setAllowedAreas( Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea )
        self._dockGlobalTree.setWidget( self._globalTree )
        self._sgDesktop.addDockWidget( Qt.LeftDockWidgetArea, self._dockGlobalTree )
-       pass
 
    def createGraphicsView( self ) :
        scene = GraphicsScene( self._controller )
        self._globalGraphicsView = GraphicsView( scene )
        self._globalGraphicsViewID = self._sgPyQt.createView( "ViewCurve", self._globalGraphicsView )
-       pass
 
    def createActions( self ) :
        self.createPolylineAction = self._sgPyQt.createAction( self._polylineID, "Polyline", "Create Polyline", "Show Polyline dialog box", "ExecPolyline.png" )
        self.createCircleAction = self._sgPyQt.createAction( self._circleID, "Circle", "Create Circle", "Show Circle dialog box", "ExecCircle.png" )
        self.deleteAllAction = self._sgPyQt.createAction( self._deleteAllID, "Delete all", "Delete all", "Delete all objects", "ExecDelAll.png" )
-       pass
 
    def createMenus( self ) :
        curveMenu = self._sgPyQt.createMenu( " Curve", -1, self._curveMenuID, self._sgPyQt.defaultMenuGroup() )
@@ -56,7 +52,6 @@ class :sat:{PYCMP}Desktop( QMainWindow ) :
        self._sgPyQt.createMenu( self.createPolylineAction, curveMenu )
        self._sgPyQt.createMenu( self.createCircleAction, curveMenu )
        self._sgPyQt.createMenu( self.deleteAllAction, advancedMenu )
-       pass
 
    def createToolBars( self ) :
        createPolylineTB = self._sgPyQt.createTool("New polyline")
@@ -66,7 +61,6 @@ class :sat:{PYCMP}Desktop( QMainWindow ) :
        self._sgPyQt.createTool( self.createPolylineAction, createPolylineTB )
        self._sgPyQt.createTool( self.createCircleAction, createCircleTB )
        self._sgPyQt.createTool( self.deleteAllAction, deleteAllTB )
-       pass
 
    def createPopups( self ) :
        pass
@@ -76,7 +70,6 @@ class :sat:{PYCMP}Desktop( QMainWindow ) :
 
    def setController( self, controller ) :
        self._controller = controller
-       pass
 
    def getGlobalTree( self ) :
        return self._globalTree
@@ -96,6 +89,4 @@ class :sat:{PYCMP}Desktop( QMainWindow ) :
        #Resizing the globalGraphicView
        sceneRect = scene.getRect()
        self._globalGraphicsView.fitInView ( sceneRect, Qt.KeepAspectRatio )
-       pass
 
-pass
index eaa0e4980432694e724c05e2f15ef3e95e75def5..af631770594d822e47e9ab4ec364fa3af148abc8 100755 (executable)
@@ -79,7 +79,6 @@ def setDesktop( ):
         moduleDesktop = :sat:{PYCMP}Desktop( sgPyQt, sg )
         objectsManager = Controller( moduleDesktop )
         moduleDesktop.setController( objectsManager )
-        pass
     return moduleDesktop
 
 def incObjToMap( m, id ):
@@ -87,7 +86,6 @@ def incObjToMap( m, id ):
 
     if id not in m: m[id] = 0
     m[id] += 1
-    pass
 
 def getSelection():
     """This method analyses selection"""
@@ -96,7 +94,6 @@ def getSelection():
     seltypes = {}
     for i in range( selcount ):
         incObjToMap( seltypes, getObjectID( sg.getSelected( i ) ) )
-        pass
     return selcount, seltypes
 
 ################################################
@@ -106,7 +103,6 @@ def getSelection():
 def initialize():
     """This method is called when module is initialized. It performs initialization actions"""
     setDesktop()
-    pass
 
 def windows():
     """This method is called when module is initialized. It returns a map of popup windows to be used by the module"""
@@ -122,7 +118,6 @@ def views():
 
 def createPreferences():
     """This method is called when module is initialized. It exports module preferences"""
-    pass
 
 def activate():
     """This method is called when module is initialized. It returns True if activating is successfull, False otherwise"""
@@ -141,7 +136,6 @@ def activate():
 
 def viewTryClose( wid ):
     sgPyQt.setViewClosable(wid, True)
-    pass
 
 def deactivate():
     """This method is called when module is deactivated"""
@@ -152,41 +146,32 @@ def deactivate():
     moduleDesktop.getDockGlobalTree().hide()
     moduleDesktop.updateGlobalGraphicsView( None )
     moduleDesktop.getGlobalGraphicsView().hide()
-    pass
 
 def activeStudyChanged():
     """This method is called when active study is changed"""
 
     setDesktop()
-    pass
 
 def createPopupMenu( popup, context ):
     """This method is called when popup menu is invocked"""
-    pass
 
 def OnGUIEvent( commandID ):
     """This method is called when a GUI action is activated"""
 
     if commandID in dict_command:
        dict_command[commandID]()
-       pass
-    pass
 
 def preferenceChanged( section, setting ):
     """This method is called when module's preferences are changed"""
-    pass
 
 def activeViewChanged( viewID ):
     """This method is called when active view is changed"""
-    pass
 
 def viewCloned( viewID ):
     """This method is called when active view is cloned"""
-    pass
 
 def viewClosed( viewID ):
     """This method is called when active view viewClosed"""
-    pass
 
 def engineIOR():
     """This method is called when study is opened. It returns engine IOR"""
@@ -206,7 +191,6 @@ def showCreatePolylineDialog() :
     widgetDialogBox.setWidget( myDialog )
     widgetDialogBox.setWindowTitle( "Polyline definition" )
     sgDesktop.addDockWidget(Qt.LeftDockWidgetArea, widgetDialogBox)
-    pass
 
 def showCreateCircleDialog() :
     from CreateCircleDialog import CreateCircleDialog
@@ -217,7 +201,6 @@ def showCreateCircleDialog() :
     widgetDialogBox.setWidget( myDialog )
     widgetDialogBox.setWindowTitle( "Circle definition" )
     sgDesktop.addDockWidget(Qt.LeftDockWidgetArea, widgetDialogBox)
-    pass
 
 def deleteAll() :
     models = moduleDesktop.getController().getModels()
@@ -226,9 +209,6 @@ def deleteAll() :
     if answer == QMessageBox.Yes :
        for model in models :
           moduleDesktop.getController().removeModel( model )
-          pass
-       pass
-    pass
 
 ########################################################
 # Commands dictionary
index be011f94a1a2eb70604d843b125b615be6cd49b2..4a85a87231ba18dd41e10b211a290cf6cd02cbef 100755 (executable)
@@ -33,14 +33,12 @@ class Desktop(QMainWindow):
         # Creating menus and toolbars
         self.createMenus()
         self.createToolBars()
-        pass
 
     def getController(self):
         return self._controller
 
     def setController(self, controller):
         self._controller = controller
-        pass
 
     def getGlobalTree(self):
         return self._globalTree
@@ -61,7 +59,6 @@ class Desktop(QMainWindow):
         createPolylineAction.triggered.connect(self.showCreatePolylineDialog)
         createCircleAction.triggered.connect(self.showCreateCircleDialog)
         deleteAllAction.triggered.connect(self.deleteAll)
-        pass
 
     def createToolBars(self):
         # Creating toolBars
@@ -75,7 +72,6 @@ class Desktop(QMainWindow):
         # Connecting slots
         createPolylineAction.triggered.connect(self.showCreatePolylineDialog)
         createCircleAction.triggered.connect(self.showCreateCircleDialog)
-        pass
 
     def showCreatePolylineDialog(self):
         from CreatePolylineDialog import CreatePolylineDialog
@@ -88,7 +84,6 @@ class Desktop(QMainWindow):
         widgetDialogBox.setWidget(myDialog)
         widgetDialogBox.setWindowTitle("Polyline definition")
         self.addDockWidget(Qt.LeftDockWidgetArea, widgetDialogBox)
-        pass
 
     def showCreateCircleDialog(self):
         from CreateCircleDialog import CreateCircleDialog
@@ -99,7 +94,6 @@ class Desktop(QMainWindow):
         widgetDialogBox.setWidget(myDialog)
         widgetDialogBox.setWindowTitle("Polyline definition")
         self.addDockWidget(Qt.LeftDockWidgetArea, widgetDialogBox)
-        pass
 
     def deleteAll(self):
         models = self.getController().getModels()
@@ -114,9 +108,6 @@ class Desktop(QMainWindow):
         if answer == QMessageBox.Yes:
             for model in models:
                 self.getController().removeModel(model)
-                pass
-            pass
-        pass
 
     def updateGlobalGraphicsView(self, scene):
         self._globalGraphicsView.setScene(scene)
@@ -133,7 +124,5 @@ class Desktop(QMainWindow):
             topLeft.x(), topLeft.y(), 2 * sceneRect.width(), 2 * sceneRect.height()
         )
         self._globalGraphicsView.fitInView(viewRect, Qt.IgnoreAspectRatio)
-        pass
 
 
-pass
index 0712e48b3cd96ddacee22bfced0d97221d4ef653..b1e860ae1c90229306c66b83d8dd9cc94fae1821 100755 (executable)
@@ -19,4 +19,3 @@ def main(args):
 
 if __name__ == "__main__":
     main(sys.argv)
-    pass
index edc3a3c99f4e4269b77ce06a2379fc9c09d282e5..fceb280de900cdcf2cc4c537595ac12914ae7f2f 100755 (executable)
@@ -6,11 +6,10 @@ from GraphicsRectItem import GraphicsRectItem
 class CircleGraphicsScene(GraphicsScene):
     def __init__(self, controller):
         GraphicsScene.__init__(self, controller)
-        pass
 
     def draw(self):
 
-        import math
+        pass
 
         center = self._model.getCenter()
         radius = float(self._model.getRadius())
@@ -25,7 +24,5 @@ class CircleGraphicsScene(GraphicsScene):
         circleItem = QGraphicsEllipseItem()
         circleItem.setRect(rect)
         self.addItem(circleItem)
-        pass
 
 
-pass
index 59d4aee52e98fb37df9aa1b3764dc0caa5e58467..2227efbd391df8bc1ca35d0a206bf78a418bde33 100755 (executable)
@@ -8,7 +8,6 @@ class CircleTreeWidgetItem(TreeWidgetItem):
         """Constructor"""
 
         TreeWidgetItem.__init__(self, name, controller, actionsList)
-        pass
 
     def editInGlobalTree(self, treeWidgetItem):
         name = self.getModel().getName()
@@ -22,7 +21,5 @@ class CircleTreeWidgetItem(TreeWidgetItem):
         radius = self._model.getRadius()
         relatedItem = treeWidgetItem.child(1)
         relatedItem.setText(0, str(radius))
-        pass
 
 
-pass
index 449d2c037d7d12cfe01a0d85e666a934528cc56c..04e0200ad3d159aab45d099dbe9573a410de8468 100755 (executable)
@@ -7,10 +7,8 @@ class GraphicsRectItem(QGraphicsRectItem):
         self._index = index
         self.setFlag(self.ItemIsMovable, True)
         self.setFlag(self.ItemIsSelectable, True)
-        pass
 
     def getIndex(self):
         return self._index
 
 
-pass
index 42723d40c0ad73cb92383b467e5d0b7ad68474e6..1d5f1f7b0c5611d62cea274175f80526abdfa25a 100755 (executable)
@@ -8,7 +8,6 @@ class GraphicsScene(View, QGraphicsScene):
 
         View.__init__(self, controller)
         QGraphicsScene.__init__(self)
-        pass
 
     def getRect(self):
         rect = QRectF(0, 0, self.width(), self.height())
@@ -17,52 +16,40 @@ class GraphicsScene(View, QGraphicsScene):
     def editPoint(self, oldPoint, newPoint):
         polyline = self.getModel()
         self.getController().editPoint(polyline, oldPoint, newPoint)
-        pass
 
     def editCenter(self, center):
         circle = self.getModel()
         self.getController().editCenter(circle, center)
-        pass
 
     def editRadius(self, radius):
         circle = self.getModel()
         self.getController().editRadius(circle, radius)
-        pass
 
     def update(self, mode):
         if mode == "creation":
             self.showInGlobalGraphicsView()
-            pass
         elif mode == "showing":
             self.showInGlobalGraphicsView()
         elif mode == "modification":
             self.undraw()
             self.showInGlobalGraphicsView()
-            pass
         elif mode == "supression":
             self.removeFromGlobalGraphicsView()
-            pass
         else:
             return
 
     def showInGlobalGraphicsView(self):
         self.draw()
         self.getController().getMainFrame().updateGlobalGraphicsView(self)
-        pass
 
     def removeFromGlobalGraphicsView(self):
         self.getController().getMainFrame().updateGlobalGraphicsView(None)
-        pass
 
     def draw(self):
         print("Virtual method")
-        pass
 
     def undraw(self):
         for item in self.items():
             self.removeItem(item)
-            pass
-        pass
 
 
-pass
index 24a394ef9cd4047d551e17cfa363e613530bbc95..72a7a32393ba0eb3e4640c7eee3b3af4967084b0 100755 (executable)
@@ -14,21 +14,18 @@ class GraphicsView(QGraphicsView):
         self._selectedItem = None
         self.moved[QPointF].connect(self.execMouseMoveEvent)
         self.released[QPointF].connect(self.execMouseReleaseEvent)
-        pass
 
     def mousePressEvent(self, mouseEvent):
         QGraphicsView.mousePressEvent(self, mouseEvent)
         if self.scene() is None:
             return
         self._selectedItem = self.scene().mouseGrabberItem()
-        pass
 
     def mouseMoveEvent(self, mouseEvent):
         QGraphicsView.mouseMoveEvent(self, mouseEvent)
         pt = mouseEvent.pos()
         currentPos = self.mapToScene(pt)
         self.moved.emit(currentPos)
-        pass
 
     def mouseReleaseEvent(self, mouseEvent):
         QGraphicsView.mouseReleaseEvent(self, mouseEvent)
@@ -37,8 +34,6 @@ class GraphicsView(QGraphicsView):
             newPos = self.mapToScene(pt)
             self.released.emit(newPos)
             self._selectedItem = None
-            pass
-        pass
 
     def execMouseMoveEvent(self, currentPos):
         if self._selectedItem is None:
@@ -46,7 +41,7 @@ class GraphicsView(QGraphicsView):
         selectedIndex = self._selectedItem.getIndex()
         newX = currentPos.x()
         newY = currentPos.y()
-        newPoint = newX, newY
+        newX, newY
         model = self.scene().getModel()
         pen = QPen(QColor("red"))
         if isinstance(model, Polyline):
@@ -56,13 +51,11 @@ class GraphicsView(QGraphicsView):
                 xNext = nextPoint[0]
                 yNext = nextPoint[1]
                 self.scene().addLine(newX, newY, xNext, yNext, pen)
-                pass
             elif selectedIndex == len(model.getPoints()) - 1:
                 previousPoint = model.getPoints()[selectedIndex - 1]
                 xPrevious = previousPoint[0]
                 yPrevious = previousPoint[1]
                 self.scene().addLine(xPrevious, yPrevious, newX, newY, pen)
-                pass
             else:
                 previousPoint = model.getPoints()[selectedIndex - 1]
                 xPrevious = previousPoint[0]
@@ -72,8 +65,6 @@ class GraphicsView(QGraphicsView):
                 xNext = nextPoint[0]
                 yNext = nextPoint[1]
                 self.scene().addLine(newX, newY, xNext, yNext, pen)
-                pass
-            pass
         elif isinstance(model, Circle):
             # Previsualisation
             radius = float(model.getRadius())
@@ -82,8 +73,6 @@ class GraphicsView(QGraphicsView):
             circleItem.setPen(pen)
             circleItem.setRect(rect)
             self.scene().addItem(circleItem)
-            pass
-        pass
 
     def execMouseReleaseEvent(self, newPos):
         if self._selectedItem is None:
@@ -95,11 +84,7 @@ class GraphicsView(QGraphicsView):
         model = self.scene().getModel()
         if isinstance(model, Polyline):
             self.scene().getController().editPoint(model, newPoint, selectedIndex)
-            pass
         elif isinstance(model, Circle):
             self.scene().getController().editCenter(model, newPoint)
-            pass
-        pass
 
 
-pass
index 87a912e414919ab070f2b3b7c25b5f64018b1fc6..edf7a278b33a77af37d65addada450ea8c9feb93 100755 (executable)
@@ -7,10 +7,8 @@ class Menu(QMenu):
 
         QMenu.__init__(self)
         self._item = item
-        pass
 
     def getItem(self):
         return self._item
 
 
-pass
index c68fc67bd112a4fe8e69a51c52776fdcd4dde3d9..3d29eca25ea0ae6a54badffed3db6de2625940e0 100755 (executable)
@@ -6,7 +6,6 @@ from GraphicsRectItem import GraphicsRectItem
 class PolyGraphicsScene(GraphicsScene):
     def __init__(self, controller):
         GraphicsScene.__init__(self, controller)
-        pass
 
     def draw(self):
         points = self.getModel().getPoints()
@@ -19,7 +18,6 @@ class PolyGraphicsScene(GraphicsScene):
             # Constructing a rectangle centered on point
             pointItem = GraphicsRectItem(xPoint - 0.1, yPoint - 0.1, 0.2, 0.2, i)
             self.addItem(pointItem)
-            pass
 
         # Linking the points with lines
         for i in range(len(points) - 1):
@@ -33,8 +31,5 @@ class PolyGraphicsScene(GraphicsScene):
             lineItem = QGraphicsLineItem()
             lineItem.setLine(line)
             self.addItem(lineItem)
-            pass
-        pass
 
 
-pass
index 8369f903f21b4d7175ee67f00ca6c72ff4d4e689..a15b0db85b66bafe3ceb10a11b46c5a05899df4a 100755 (executable)
@@ -8,7 +8,6 @@ class PolyTreeWidgetItem(TreeWidgetItem):
         """Constructor"""
 
         TreeWidgetItem.__init__(self, name, controller, actionsList)
-        pass
 
     def editInGlobalTree(self, treeWidgetItem):
         name = self.getModel().getName()
@@ -21,8 +20,5 @@ class PolyTreeWidgetItem(TreeWidgetItem):
             yPoint = point[1]
             relatedItem = treeWidgetItem.child(i)
             relatedItem.setText(0, str(xPoint) + ":" + str(yPoint))
-            pass
-        pass
 
 
-pass
index 1cd30c5edcb89ca4e8b1245b271ffec9474c41c1..ea4b44066cc08665fa91e49bf2f589d7add5b8d9 100755 (executable)
@@ -30,7 +30,6 @@ class TreeWidget(QTreeWidget):
         # Creating popup menu
         self.setContextMenuPolicy(Qt.CustomContextMenu)
         self.customContextMenuRequested[QPoint].connect(self.createPopups)
-        pass
 
     def createPopups(self, point):
         item = self.itemAt(point)
@@ -40,25 +39,18 @@ class TreeWidget(QTreeWidget):
         for action in item.getActionsList():
             if action == "Show":
                 self.menu.addAction(action).triggered.connect(self.show)
-                pass
             elif action == "Rename":
                 self.menu.addAction(action).triggered.connect(self.showRenameDialog)
-                pass
             elif action == "Delete":
                 self.menu.addAction(action).triggered.connect(self.delete)
-                pass
             else:
                 self.menu.addAction(action).triggered.connect(self.showEditDialog)
-                pass
-            pass
         self.menu.exec_(QCursor.pos())
-        pass
 
     def show(self):
         model = self.menu.getItem().getModel()
         controller = self._desktop.getController()
         controller.showModel(model)
-        pass
 
     def showRenameDialog(self):
         model = self.menu.getItem().getModel()
@@ -75,7 +67,6 @@ class TreeWidget(QTreeWidget):
         widgetDialogBox.setWidget(myDialog)
         widgetDialogBox.setWindowTitle("Object renaming")
         sgDesktop.addDockWidget(Qt.LeftDockWidgetArea, widgetDialogBox)
-        pass
 
     def delete(self):
         answer = QMessageBox.question(
@@ -88,8 +79,6 @@ class TreeWidget(QTreeWidget):
             model = self.menu.getItem().getModel()
             controller = self._desktop.getController()
             controller.removeModel(model)
-            pass
-        pass
 
     def showEditDialog(self):
         item = self.menu.getItem()
@@ -107,7 +96,6 @@ class TreeWidget(QTreeWidget):
                 oldPoint,
                 pointRange,
             )
-            pass
         elif isinstance(parentModel, Circle):
             selectedRange = parentItem.indexOfChild(item)
             oldSelected = item.text(0)
@@ -129,7 +117,6 @@ class TreeWidget(QTreeWidget):
                 )
             else:
                 pass
-            pass
         else:
             pass
 
@@ -137,7 +124,5 @@ class TreeWidget(QTreeWidget):
         widgetDialogBox.setWidget(myDialog)
         widgetDialogBox.setWindowTitle("Object edition")
         sgDesktop.addDockWidget(Qt.LeftDockWidgetArea, widgetDialogBox)
-        pass
 
 
-pass
index e70758b1c0f3c7ffd01d0aee20c80d861b12c921..81fcc3136829ab4218c8354009633ce605d8064b 100755 (executable)
@@ -10,7 +10,6 @@ class TreeWidgetItem(View, QTreeWidgetItem):
         self._name = [name]
         QTreeWidgetItem.__init__(self, self._name)
         self._actionsList = actionsList
-        pass
 
     def getActionsList(self):
         return self._actionsList
@@ -18,39 +17,30 @@ class TreeWidgetItem(View, QTreeWidgetItem):
     def editCenter(self, center):
         circle = self.getModel()
         self.getController().editCenter(circle, center)
-        pass
 
     def editRadius(self, radius):
         circle = self.getModel()
         self.getController().editRadius(circle, radius)
-        pass
 
     def update(self, mode):
         if mode == "creation":
             self.addToGlobalTree(self)
-            pass
         elif mode == "modification":
             self.editInGlobalTree(self)
-            pass
         elif mode == "supression":
             self.removeFromGlobalTree(self)
-            pass
         else:
             return
 
     def addToGlobalTree(self, treeWidgetItem):
         globalTree = self.getController().getMainFrame().getGlobalTree()
         globalTree.addTopLevelItem(treeWidgetItem)
-        pass
 
     def editInGlobalTree(self, treeWidgetItem):
         print("Virtual")
-        pass
 
     def removeFromGlobalTree(self, treeWidgetItem):
         globalTree = self.getController().getMainFrame().getGlobalTree()
         globalTree.takeTopLevelItem(globalTree.indexOfTopLevelItem(treeWidgetItem))
-        pass
 
 
-pass
index 0f22580fd68ddac51d7fefe75e3fa1e0f5c643c1..2a1d2d5f8e09cb63db70ce0e4587ef8f69ce143e 100755 (executable)
@@ -4,30 +4,24 @@ class View:
 
         self._model = None
         self._controller = controller
-        pass
 
     def getModel(self):
         return self._model
 
     def setModel(self, model):
         self._model = model
-        pass
 
     def getController(self):
         return self._controller
 
     def setController(self, controller):
         self._controller = controller
-        pass
 
     def editName(self, name):
         model = self.getModel()
         self._controller.editName(model, name)
-        pass
 
     def update(self, mode):
         print("Virtual method")
-        pass
 
 
-pass
index 81db59176bedea8663879cc3cdd5804c9f8903de..7dc2e6caaa7722acba4bea7570ed3ac4f78e517c 100755 (executable)
@@ -12,7 +12,6 @@ class Controller:
         self._mainFrame = MainFrame
         self._nbPolylines = 0
         self._nbCircles = 0
-        pass
 
     def getModels(self):
         return self._models
@@ -25,14 +24,12 @@ class Controller:
 
     def setNbPolylines(self, n):
         self._nbPolylines = n
-        pass
 
     def getNbCircles(self):
         return self._nbCircles
 
     def setNbCircles(self, n):
         self._nbCircles = n
-        pass
 
     def createPolyline(self, name, randomNumberOfPoints):
         """Creates a Polyline object nammed name with randomNumberOfPoints points"""
@@ -47,7 +44,6 @@ class Controller:
             y = random.uniform(0, x)
             point = x, y
             points.append(point)
-            pass
 
         myPolyline = Polyline(name, points, self)
         self._models.append(myPolyline)
@@ -68,7 +64,6 @@ class Controller:
 
     def showModel(self, model):
         model.updateViews(mode="showing")
-        pass
 
     def editName(self, model, name):
         model.setName(name)
@@ -92,15 +87,11 @@ class Controller:
 
     def removeModel(self, model):
         model.updateViews(mode="supression")
-        index = self._models.index(model)
+        self._models.index(model)
         del model
-        pass
 
     def saveListOfModels(self):
         for model in self._models:
             model.save()
-            pass
-        pass
 
 
-pass
index 1cc1818172eb70f674be041866a2f54837eaa9b9..67f10ccc7ddea125270c549a4c2f217f5d773e96 100755 (executable)
@@ -12,7 +12,6 @@ class CreateCircleDialog(Dialog):
         # Setting default name
         nbCircles = controller.getNbCircles()
         self.entryName.setText("circle_" + str(nbCircles + 1))
-        pass
 
     def addSpecialWidgets(self):
         floatValidator = QDoubleValidator(self)
@@ -36,7 +35,6 @@ class CreateCircleDialog(Dialog):
         self.entryRadius.setValidator(floatValidator)
         self.entryRadius.setText("10")
         self.v12.addWidget(self.entryRadius)
-        pass
 
     def execApply(self):
         name = self.name
@@ -51,7 +49,6 @@ class CreateCircleDialog(Dialog):
         self.xCenter = str(self.entryxCenter.text())
         self.yCenter = str(self.entryyCenter.text())
         self.radius = str(self.entryRadius.text())
-        pass
 
     def checkUserEntries(self):
         if (
@@ -70,7 +67,5 @@ class CreateCircleDialog(Dialog):
         self.entryxCenter.setText("0")
         self.entryyCenter.setText("0")
         self.entryRadius.setText("10")
-        pass
 
 
-pass
index e09946a62dac0c3b4f3e1dc9ed4e4c249dfdc93b..e6d953c2eb8731a0fad849b1917f335a3eff65f5 100755 (executable)
@@ -12,7 +12,6 @@ class CreatePolylineDialog(Dialog):
         # Setting default name
         nbPolylines = controller.getNbPolylines()
         self.entryName.setText("polyline_" + str(nbPolylines + 1))
-        pass
 
     def addSpecialWidgets(self):
 
@@ -25,7 +24,6 @@ class CreatePolylineDialog(Dialog):
         self.entryNbPoints.setValidator(intValidator)
         self.entryNbPoints.setText("10")
         self.v12.addWidget(self.entryNbPoints)
-        pass
 
     def execApply(self):
         name = self.name
@@ -37,7 +35,6 @@ class CreatePolylineDialog(Dialog):
     def retrieveUserEntries(self):
         self.name = str(self.entryName.text())
         self.nbPoints = str(self.entryNbPoints.text())
-        pass
 
     def checkUserEntries(self):
         if self.name == "" or self.nbPoints == "":
@@ -52,7 +49,5 @@ class CreatePolylineDialog(Dialog):
         nbPolylines = self.getController().getNbPolylines()
         self.entryName.setText("polyline_" + str(nbPolylines + 1))
         self.entryNbPoints.setText("10")
-        pass
 
 
-pass
index 0feb345ddeeda7a76647be1d727c7bdcf100ba97..643ea15c9dda053d8a867dbae4a3576206a1c377 100755 (executable)
@@ -33,7 +33,6 @@ class Dialog( QDialog ) :
 
        # Connecting widgets to slots
        self.connectSlots()
-       pass
 
    def getController( self ) :
        return self._controller
@@ -53,17 +52,14 @@ class Dialog( QDialog ) :
        self.h2.addWidget( self.bClose )
        self.bHelp = QPushButton( "Help", self )
        self.h2.addWidget( self.bHelp )
-       pass
 
    def addSpecialWidgets( self ) :
        print 'Virtual method'
-       pass
 
    def connectSlots( self ) :
        self.bApply.clicked.connect(self.apply)
        self.bHelp.clicked.connect(self.help)
        self.bClose.clicked.connect(self.close)
-       pass
 
    def apply( self ) :
 
@@ -76,7 +72,6 @@ class Dialog( QDialog ) :
 
    def retrieveUserEntries( self ) :
        self.name = str( self.entryName.text() )
-       pass
 
    def checkUserEntries( self ) :
        if self.name == "" :
@@ -86,19 +81,14 @@ class Dialog( QDialog ) :
 
    def execApply( self ) :
        print 'Virtual method'
-       pass
 
    def reInitializeDialog( self ) :
        print 'Virtual method'
-       pass
 
    def help( self ) :
        import os
        os.system( 'firefox ' + self._helpFile + '&' )
-       pass
 
    def close( self ) :
        self._widgetDialogBox.close()
-       pass
 
-pass
index 0d2d884bea8035cbad29684ea8df8aeea7f3ef0c..c81adfd3d0443e2fe7f21ee1a007a57ebc420ebc 100755 (executable)
@@ -33,7 +33,6 @@ class DialogEdit( QDialog ) :
 
        # Connecting widgets to slots
        self.connectSlots()
-       pass
 
    def getController( self ) :
        return self._controller
@@ -47,17 +46,14 @@ class DialogEdit( QDialog ) :
        self.h2.addWidget( self.bCancel )
        self.bHelp = QPushButton( "Help", self )
        self.h2.addWidget( self.bHelp )
-       pass
 
    def addSpecialWidgets( self ) :
        print 'Virtual method'
-       pass
 
    def connectSlots( self ) :
        self.bOk.clicked.connect(self.apply)
        self.bHelp.clicked.connect(self.help)
        self.bCancel.clicked.connect(self.close)
-       pass
 
    def apply( self ) :
        self.retrieveUserEntries()
@@ -70,7 +66,6 @@ class DialogEdit( QDialog ) :
 
    def retrieveUserEntries( self ) :
        print 'Virtual method'
-       pass
 
    def checkUserEntries( self ) :
        print 'Virtual method'
@@ -78,15 +73,11 @@ class DialogEdit( QDialog ) :
 
    def execApply( self ) :
        print 'Virtual method'
-       pass
 
    def help( self ) :
        import os
        os.system( 'firefox ' + self._helpFile + '&' )
-       pass
 
    def close( self ) :
        self._widgetDialogBox.close()
-       pass
 
-pass
index d6a9d03a750337366ad9b6f64268b485c24a575f..b410191056d9e69c81c61c22718a2286a79a5327 100755 (executable)
@@ -18,13 +18,10 @@ class EditCenterDialog(DialogEdit):
         while oldCenter[i] != ":":
             oldX += oldCenter[i]
             i += 1
-            pass
         for j in range(i + 1, len(oldCenter)):
             oldY += oldCenter[j]
-            pass
         self.entryX.setText(oldX)
         self.entryY.setText(oldY)
-        pass
 
     def addSpecialWidgets(self):
         floatValidator = QDoubleValidator(self)
@@ -40,7 +37,6 @@ class EditCenterDialog(DialogEdit):
         self.entryY = QLineEdit(self)
         self.entryY.setValidator(floatValidator)
         self.v12.addWidget(self.entryY)
-        pass
 
     def execApply(self):
         newX = float(self.newX)
@@ -52,7 +48,6 @@ class EditCenterDialog(DialogEdit):
     def retrieveUserEntries(self):
         self.newX = str(self.entryX.text())
         self.newY = str(self.entryY.text())
-        pass
 
     def checkUserEntries(self):
         if self.newX == "" or self.newY == "":
@@ -61,4 +56,3 @@ class EditCenterDialog(DialogEdit):
         return True
 
 
-pass
index 1c83890cf400578c05d92368e4cea183eaff01ac..7936f3f4b62079e0abdb554c47220f52bad2c605 100755 (executable)
@@ -20,14 +20,11 @@ class EditPointDialog(DialogEdit):
         while oldPoint[i] != ":":
             oldX += oldPoint[i]
             i += 1
-            pass
         for j in range(i + 1, len(oldPoint)):
             oldY += oldPoint[j]
-            pass
         self.pointRange = pointRange
         self.entryX.setText(oldX)
         self.entryY.setText(oldY)
-        pass
 
     def addSpecialWidgets(self):
         floatValidator = QDoubleValidator(self)
@@ -43,7 +40,6 @@ class EditPointDialog(DialogEdit):
         self.entryY = QLineEdit(self)
         self.entryY.setValidator(floatValidator)
         self.v12.addWidget(self.entryY)
-        pass
 
     def execApply(self):
         pointRange = self.pointRange
@@ -56,7 +52,6 @@ class EditPointDialog(DialogEdit):
     def retrieveUserEntries(self):
         self.newX = str(self.entryX.text())
         self.newY = str(self.entryY.text())
-        pass
 
     def checkUserEntries(self):
         if self.newX == "" or self.newY == "":
@@ -65,4 +60,3 @@ class EditPointDialog(DialogEdit):
         return True
 
 
-pass
index a9c43c8c5971c548f66c5543bf0760c7a7d740b3..4374704b24c18ab8da7823661a38dc0d86f62010 100755 (executable)
@@ -11,7 +11,6 @@ class EditRadiusDialog(DialogEdit):
 
         self._model = model
         self.entryRadius.setText(oldRadius)
-        pass
 
     def addSpecialWidgets(self):
         floatValidator = QDoubleValidator(self)
@@ -21,7 +20,6 @@ class EditRadiusDialog(DialogEdit):
         self.entryRadius = QLineEdit(self)
         self.entryRadius.setValidator(floatValidator)
         self.v12.addWidget(self.entryRadius)
-        pass
 
     def execApply(self):
         newRadius = self.newRadius
@@ -30,7 +28,6 @@ class EditRadiusDialog(DialogEdit):
 
     def retrieveUserEntries(self):
         self.newRadius = str(self.entryRadius.text())
-        pass
 
     def checkUserEntries(self):
         if self.newRadius == "":
@@ -39,4 +36,3 @@ class EditRadiusDialog(DialogEdit):
         return True
 
 
-pass
index 6ff291bc22e9e90c01dec7c467faff71ab1946c5..43476903adf5281b6b466f38911f300cbe694ae9 100755 (executable)
@@ -11,14 +11,12 @@ class RenameDialog(DialogEdit):
 
         self._model = model
         self.entryName.setText(oldName)
-        pass
 
     def addSpecialWidgets(self):
         lName = QLabel("Name", self)
         self.v11.addWidget(lName)
         self.entryName = QLineEdit(self)
         self.v12.addWidget(self.entryName)
-        pass
 
     def execApply(self):
         newName = self.newName
@@ -27,7 +25,6 @@ class RenameDialog(DialogEdit):
 
     def retrieveUserEntries(self):
         self.newName = str(self.entryName.text())
-        pass
 
     def checkUserEntries(self):
         if self.newName == "":
@@ -36,4 +33,3 @@ class RenameDialog(DialogEdit):
         return True
 
 
-pass
index 0f252b8b4a615240ed8cfdbd128caf8f2ba3e214..89a662d4916c91adcac650ab565c4db9237d9cb3 100755 (executable)
@@ -16,14 +16,12 @@ class Circle(Model):
         self._radius = radius
         self.addTreeWidgetItem(self.getName(), controller)
         self.addGraphicScene(controller)
-        pass
 
     def getCenter(self):
         return self._center[0], self._center[1]
 
     def setCenter(self, center):
         self._center = center
-        pass
 
     def getRadius(self):
         return self._radius
@@ -62,4 +60,3 @@ class Circle(Model):
         pass
 
 
-pass
index 7b5d4e96e00003931d73ed6a96d5192c12aef0b3..87564d068329d2c47746ea077e66a1cfefcf2b9a 100755 (executable)
@@ -7,14 +7,12 @@ class Model:
 
        self._name = None
        self._views = []
-       pass
 
    def getName( self ):
        return self._name
 
    def setName( self, name ):
        self._name = name
-       pass
 
    def getViews( self ) :
        return self._views
@@ -29,6 +27,4 @@ class Model:
 
    def save( self ) :
        print 'Virtual method'
-       pass
 
-pass
index 810ffcb7fecda111f269857a260529561f5557ca..2641dd7f8c778371d609169f2636e91809d3db39 100755 (executable)
@@ -11,18 +11,15 @@ class Polyline(Model):
         self._points = points
         self.addTreeWidgetItem(self.getName(), controller)
         self.addGraphicScene(controller)
-        pass
 
     def getPoints(self):
         return self._points
 
     def setPoints(self, points):
         self._points = points
-        pass
 
     def editPoint(self, pointRange, newPoint):
         self._points[pointRange] = newPoint
-        pass
 
     def addTreeWidgetItem(self, name, controller):
         from PolyTreeWidgetItem import PolyTreeWidgetItem
@@ -39,7 +36,6 @@ class Polyline(Model):
                 str(x) + ":" + str(y), controller, ["Edit"]
             )
             myTreeWidgetItem.addChild(newTreeWidgetItem)
-            pass
         myTreeWidgetItem.setModel(self)
         self.getViews().append(myTreeWidgetItem)
         return myTreeWidgetItem
@@ -56,4 +52,3 @@ class Polyline(Model):
         pass
 
 
-pass
index 51afc58cfa6fc3124d3b88761321c8480ccb4510..47d43f98f88649563cc320a30d3b1ea1a8554262 100755 (executable)
@@ -49,7 +49,6 @@ class :sat:{PYCMP}(:sat:{PYCMP}_ORB__POA.:sat:{PYCMP}_Gen,
         #
         self._naming_service = SALOME_ComponentPy.SALOME_NamingServicePy_i( self._orb )
         #
-        pass
 
     """
     Touch the component
@@ -69,7 +68,6 @@ class :sat:{PYCMP}(:sat:{PYCMP}_ORB__POA.:sat:{PYCMP}_Gen,
         attr.SetValue( name )
         attr    = builder.FindOrCreateAttribute( object, "AttributeLocalID" )
         attr.SetValue( objectID() )
-        pass
 
     """
     Dump module data to the Python script.
@@ -85,8 +83,6 @@ class :sat:{PYCMP}(:sat:{PYCMP}_ORB__POA.:sat:{PYCMP}_Gen,
                 name = iter.Value().GetName()
                 if name: names.append( name )
                 iter.Next()
-                pass
-            pass
         if names:
             abuffer += [ "  from batchmode_salome import lcc" ]
             abuffer += [ "  import :sat:{PYCMP}_ORB" ]
@@ -94,7 +90,6 @@ class :sat:{PYCMP}(:sat:{PYCMP}_ORB__POA.:sat:{PYCMP}_Gen,
             abuffer += [ "  myCompo = lcc.FindOrLoadComponent( 'FactoryServerPy', '%s' )" % moduleName() ]
             abuffer += [ "  " ]
             abuffer += [ "  myCompo.createObject( theStudy, '%s' )" % name for name in names ]
-            pass
         abuffer += [ "  " ]
         abuffer.append( "  pass" )
         abuffer.append( "\0" )
index 56e155787b66ba1cd434368deb74a3edd722aa5f..e9d91713f5d7f478ad65c8e30f433252b3089869 100755 (executable)
@@ -90,8 +90,6 @@ def verbose():
             __verbose__ = int( os.getenv( 'SALOME_VERBOSE', 0 ) )
         except:
             __verbose__ = 0
-            pass
-        pass
     return __verbose__
 
 ###
@@ -102,7 +100,6 @@ def getORB():
     global __orb__
     if __orb__ is None:
         __orb__ = CORBA.ORB_init( [''], CORBA.ORB_ID )
-        pass
     return __orb__
 
 ###
@@ -113,7 +110,6 @@ def getNS():
     global __naming_service__
     if __naming_service__ is None:
         __naming_service__ = SALOME_NamingServicePy_i( getORB() )
-        pass
     return __naming_service__
 
 ##
@@ -124,7 +120,6 @@ def getLCC():
     global __lcc__
     if __lcc__ is None:
         __lcc__ = LifeCycleCORBA( getORB() )
-        pass
     return __lcc__
 
 ##
@@ -136,7 +131,6 @@ def getStudyManager():
     if __study_manager__ is None:
         obj = getNS().Resolve( '/myStudyManager' )
         __study_manager__ = obj._narrow( SALOMEDS.StudyManager )
-        pass
     return __study_manager__
 
 ###
@@ -147,7 +141,6 @@ def getEngine():
     global __engine__
     if __engine__ is None:
         __engine__ = getLCC().FindOrLoadComponent( "FactoryServerPy", moduleName() )
-        pass
     return __engine__
 
 ###
@@ -157,7 +150,6 @@ def getEngineIOR():
     IOR = ""
     if getORB() and getEngine():
         IOR = getORB().object_to_string( getEngine() )
-        pass
     return IOR
 
 ###
@@ -176,10 +168,8 @@ def findOrCreateComponent( study ):
         attr.SetValue( moduleID() )
         try:
             builder.DefineComponentInstance( father, getEngine() )
-            pass
         except:
             pass
-        pass
     return father
 
 ###
@@ -192,6 +182,4 @@ def getObjectID( study, entry ):
         if sobj is not None:
             test, anAttr = sobj.FindAttribute( "AttributeLocalID" )
             if test: ID = anAttr._narrow( SALOMEDS.AttributeLocalID ).Value()
-            pass
-        pass
     return ID
index dcc57f72ee17dbeba6aa718ad56b3790856ad74a..58940d8badbcc8126a7ab7333bbb227a8eafb94b 100755 (executable)
@@ -25,7 +25,6 @@ class :sat:{PYCMP}Desktop( QMainWindow ) :
 
        self.createTreeView()
        self.createGraphicsView()
-       pass
 
    def createTreeView( self ) :
        self._globalTree= TreeWidget( self )
@@ -35,19 +34,16 @@ class :sat:{PYCMP}Desktop( QMainWindow ) :
        self._dockGlobalTree.setAllowedAreas( Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea )
        self._dockGlobalTree.setWidget( self._globalTree )
        self._sgDesktop.addDockWidget( Qt.LeftDockWidgetArea, self._dockGlobalTree )
-       pass
 
    def createGraphicsView( self ) :
        scene = GraphicsScene( self._controller )
        self._globalGraphicsView = GraphicsView( scene )
        self._globalGraphicsViewID = self._sgPyQt.createView( "ViewCurve", self._globalGraphicsView )
-       pass
 
    def createActions( self ) :
        self.createPolylineAction = self._sgPyQt.createAction( self._polylineID, "Polyline", "Create Polyline", "Show Polyline dialog box", "ExecPolyline.png" )
        self.createCircleAction = self._sgPyQt.createAction( self._circleID, "Circle", "Create Circle", "Show Circle dialog box", "ExecCircle.png" )
        self.deleteAllAction = self._sgPyQt.createAction( self._deleteAllID, "Delete all", "Delete all", "Delete all objects", "ExecDelAll.png" )
-       pass
 
    def createMenus( self ) :
        curveMenu = self._sgPyQt.createMenu( " Curve", -1, self._curveMenuID, self._sgPyQt.defaultMenuGroup() )
@@ -56,7 +52,6 @@ class :sat:{PYCMP}Desktop( QMainWindow ) :
        self._sgPyQt.createMenu( self.createPolylineAction, curveMenu )
        self._sgPyQt.createMenu( self.createCircleAction, curveMenu )
        self._sgPyQt.createMenu( self.deleteAllAction, advancedMenu )
-       pass
 
    def createToolBars( self ) :
        createPolylineTB = self._sgPyQt.createTool("New polyline")
@@ -66,7 +61,6 @@ class :sat:{PYCMP}Desktop( QMainWindow ) :
        self._sgPyQt.createTool( self.createPolylineAction, createPolylineTB )
        self._sgPyQt.createTool( self.createCircleAction, createCircleTB )
        self._sgPyQt.createTool( self.deleteAllAction, deleteAllTB )
-       pass
 
    def createPopups( self ) :
        pass
@@ -76,7 +70,6 @@ class :sat:{PYCMP}Desktop( QMainWindow ) :
 
    def setController( self, controller ) :
        self._controller = controller
-       pass
 
    def getGlobalTree( self ) :
        return self._globalTree
@@ -96,6 +89,4 @@ class :sat:{PYCMP}Desktop( QMainWindow ) :
        #Resizing the globalGraphicView
        sceneRect = scene.getRect()
        self._globalGraphicsView.fitInView ( sceneRect, Qt.KeepAspectRatio )
-       pass
 
-pass
index 71a4e0f7e726be2eea9513f22f9fc8e9fe9665c5..995ae08a75f332aa5d814a4b3eb1b1c3ea297da5 100755 (executable)
@@ -91,7 +91,6 @@ def setDesktop( studyID ):
         moduleDesktop[studyID] = :sat:{PYCMP}Desktop( sgPyQt, sg )
         objectsManager = Controller( moduleDesktop[studyID] )
         moduleDesktop[studyID].setController( objectsManager )
-        pass
     currentDesktop = moduleDesktop[studyID]
     return currentDesktop
 
@@ -100,7 +99,6 @@ def incObjToMap( m, id ):
 
     if id not in m: m[id] = 0
     m[id] += 1
-    pass
 
 def getSelection():
     """This method analyses selection"""
@@ -109,7 +107,6 @@ def getSelection():
     seltypes = {}
     for i in range( selcount ):
         incObjToMap( seltypes, getObjectID( getStudy(), sg.getSelected( i ) ) )
-        pass
     return selcount, seltypes
 
 ################################################
@@ -120,7 +117,6 @@ def initialize():
     """This method is called when module is initialized. It performs initialization actions"""
 
     setDesktop( getStudyId() )
-    pass
 
 def windows():
     """This method is called when module is initialized. It returns a map of popup windows to be used by the module"""
@@ -136,7 +132,6 @@ def views():
 
 def createPreferences():
     """This method is called when module is initialized. It exports module preferences"""
-    pass
 
 def activate():
     """This method is called when module is initialized. It returns True if activating is successfull, False otherwise"""
@@ -155,7 +150,6 @@ def activate():
 
 def viewTryClose( wid ):
     sgPyQt.setViewClosable(wid, True)
-    pass
 
 def deactivate():
     """This method is called when module is deactivated"""
@@ -166,41 +160,32 @@ def deactivate():
     moduleDesktop[getStudyId()].getDockGlobalTree().hide()
     moduleDesktop[getStudyId()].updateGlobalGraphicsView( None )
     moduleDesktop[getStudyId()].getGlobalGraphicsView().hide()
-    pass
 
 def activeStudyChanged( studyID ):
     """This method is called when active study is changed"""
 
     setDesktop( getStudyId() )
-    pass
 
 def createPopupMenu( popup, context ):
     """This method is called when popup menu is invocked"""
-    pass
 
 def OnGUIEvent( commandID ):
     """This method is called when a GUI action is activated"""
 
     if commandID in dict_command:
        dict_command[commandID]()
-       pass
-    pass
 
 def preferenceChanged( section, setting ):
     """This method is called when module's preferences are changed"""
-    pass
 
 def activeViewChanged( viewID ):
     """This method is called when active view is changed"""
-    pass
 
 def viewCloned( viewID ):
     """This method is called when active view is cloned"""
-    pass
 
 def viewClosed( viewID ):
     """This method is called when active view viewClosed"""
-    pass
 
 def engineIOR():
     """This method is called when study is opened. It returns engine IOR"""
@@ -220,7 +205,6 @@ def showCreatePolylineDialog() :
     widgetDialogBox.setWidget( myDialog )
     widgetDialogBox.setWindowTitle( "Polyline definition" )
     sgDesktop.addDockWidget(Qt.LeftDockWidgetArea, widgetDialogBox)
-    pass
 
 def showCreateCircleDialog() :
     from CreateCircleDialog import CreateCircleDialog
@@ -231,7 +215,6 @@ def showCreateCircleDialog() :
     widgetDialogBox.setWidget( myDialog )
     widgetDialogBox.setWindowTitle( "Circle definition" )
     sgDesktop.addDockWidget(Qt.LeftDockWidgetArea, widgetDialogBox)
-    pass
 
 def deleteAll() :
     models = moduleDesktop[getStudyId()].getController().getModels()
@@ -240,9 +223,6 @@ def deleteAll() :
     if answer == QMessageBox.Yes :
        for model in models :
           moduleDesktop[getStudyId()].getController().removeModel( model )
-          pass
-       pass
-    pass
 
 ########################################################
 # Commands dictionary
index be011f94a1a2eb70604d843b125b615be6cd49b2..4a85a87231ba18dd41e10b211a290cf6cd02cbef 100755 (executable)
@@ -33,14 +33,12 @@ class Desktop(QMainWindow):
         # Creating menus and toolbars
         self.createMenus()
         self.createToolBars()
-        pass
 
     def getController(self):
         return self._controller
 
     def setController(self, controller):
         self._controller = controller
-        pass
 
     def getGlobalTree(self):
         return self._globalTree
@@ -61,7 +59,6 @@ class Desktop(QMainWindow):
         createPolylineAction.triggered.connect(self.showCreatePolylineDialog)
         createCircleAction.triggered.connect(self.showCreateCircleDialog)
         deleteAllAction.triggered.connect(self.deleteAll)
-        pass
 
     def createToolBars(self):
         # Creating toolBars
@@ -75,7 +72,6 @@ class Desktop(QMainWindow):
         # Connecting slots
         createPolylineAction.triggered.connect(self.showCreatePolylineDialog)
         createCircleAction.triggered.connect(self.showCreateCircleDialog)
-        pass
 
     def showCreatePolylineDialog(self):
         from CreatePolylineDialog import CreatePolylineDialog
@@ -88,7 +84,6 @@ class Desktop(QMainWindow):
         widgetDialogBox.setWidget(myDialog)
         widgetDialogBox.setWindowTitle("Polyline definition")
         self.addDockWidget(Qt.LeftDockWidgetArea, widgetDialogBox)
-        pass
 
     def showCreateCircleDialog(self):
         from CreateCircleDialog import CreateCircleDialog
@@ -99,7 +94,6 @@ class Desktop(QMainWindow):
         widgetDialogBox.setWidget(myDialog)
         widgetDialogBox.setWindowTitle("Polyline definition")
         self.addDockWidget(Qt.LeftDockWidgetArea, widgetDialogBox)
-        pass
 
     def deleteAll(self):
         models = self.getController().getModels()
@@ -114,9 +108,6 @@ class Desktop(QMainWindow):
         if answer == QMessageBox.Yes:
             for model in models:
                 self.getController().removeModel(model)
-                pass
-            pass
-        pass
 
     def updateGlobalGraphicsView(self, scene):
         self._globalGraphicsView.setScene(scene)
@@ -133,7 +124,5 @@ class Desktop(QMainWindow):
             topLeft.x(), topLeft.y(), 2 * sceneRect.width(), 2 * sceneRect.height()
         )
         self._globalGraphicsView.fitInView(viewRect, Qt.IgnoreAspectRatio)
-        pass
 
 
-pass
index 0712e48b3cd96ddacee22bfced0d97221d4ef653..b1e860ae1c90229306c66b83d8dd9cc94fae1821 100755 (executable)
@@ -19,4 +19,3 @@ def main(args):
 
 if __name__ == "__main__":
     main(sys.argv)
-    pass
index edc3a3c99f4e4269b77ce06a2379fc9c09d282e5..fceb280de900cdcf2cc4c537595ac12914ae7f2f 100755 (executable)
@@ -6,11 +6,10 @@ from GraphicsRectItem import GraphicsRectItem
 class CircleGraphicsScene(GraphicsScene):
     def __init__(self, controller):
         GraphicsScene.__init__(self, controller)
-        pass
 
     def draw(self):
 
-        import math
+        pass
 
         center = self._model.getCenter()
         radius = float(self._model.getRadius())
@@ -25,7 +24,5 @@ class CircleGraphicsScene(GraphicsScene):
         circleItem = QGraphicsEllipseItem()
         circleItem.setRect(rect)
         self.addItem(circleItem)
-        pass
 
 
-pass
index 59d4aee52e98fb37df9aa1b3764dc0caa5e58467..2227efbd391df8bc1ca35d0a206bf78a418bde33 100755 (executable)
@@ -8,7 +8,6 @@ class CircleTreeWidgetItem(TreeWidgetItem):
         """Constructor"""
 
         TreeWidgetItem.__init__(self, name, controller, actionsList)
-        pass
 
     def editInGlobalTree(self, treeWidgetItem):
         name = self.getModel().getName()
@@ -22,7 +21,5 @@ class CircleTreeWidgetItem(TreeWidgetItem):
         radius = self._model.getRadius()
         relatedItem = treeWidgetItem.child(1)
         relatedItem.setText(0, str(radius))
-        pass
 
 
-pass
index 449d2c037d7d12cfe01a0d85e666a934528cc56c..04e0200ad3d159aab45d099dbe9573a410de8468 100755 (executable)
@@ -7,10 +7,8 @@ class GraphicsRectItem(QGraphicsRectItem):
         self._index = index
         self.setFlag(self.ItemIsMovable, True)
         self.setFlag(self.ItemIsSelectable, True)
-        pass
 
     def getIndex(self):
         return self._index
 
 
-pass
index ca307f4b70f0ed7975758f209b99ded9e8feec33..e50f5184392c8a38d86e810b7177bd78bc0087d6 100755 (executable)
@@ -8,7 +8,6 @@ class GraphicsScene( View, QGraphicsScene ) :
 
        View.__init__( self, controller )
        QGraphicsScene.__init__( self )
-       pass
 
    def getRect( self ) :
        rect = QRectF( 0, 0, self.width(), self.height() )
@@ -17,51 +16,39 @@ class GraphicsScene( View, QGraphicsScene ) :
    def editPoint( self, oldPoint, newPoint ) :
        polyline = self.getModel()
        self.getController().editPoint( polyline, oldPoint, newPoint )
-       pass
 
    def editCenter( self, center ) :
        circle = self.getModel()
        self.getController().editCenter( circle, center )
-       pass
 
    def editRadius( self, radius ) :
        circle = self.getModel()
        self.getController().editRadius( circle, radius )
-       pass
 
    def update( self, mode ) :
        if mode == 'creation' :
           self.showInGlobalGraphicsView()
-          pass
        elif mode == "showing" :
           self.showInGlobalGraphicsView()
        elif mode == 'modification' :
           self.undraw()
           self.showInGlobalGraphicsView()
-          pass
        elif mode == 'supression' :
           self.removeFromGlobalGraphicsView()
-          pass
        else :
           return
 
    def showInGlobalGraphicsView( self ) :
        self.draw()
        self.getController().getMainFrame().updateGlobalGraphicsView( self  )
-       pass
 
    def removeFromGlobalGraphicsView( self ) :
        self.getController().getMainFrame().updateGlobalGraphicsView( None  )
-       pass
 
    def draw( self ) :
        print 'Virtual method'
-       pass
 
    def undraw( self ) :
        for item in self.items() :
           self.removeItem( item )
-          pass
-       pass
 
-pass
index 24a394ef9cd4047d551e17cfa363e613530bbc95..72a7a32393ba0eb3e4640c7eee3b3af4967084b0 100755 (executable)
@@ -14,21 +14,18 @@ class GraphicsView(QGraphicsView):
         self._selectedItem = None
         self.moved[QPointF].connect(self.execMouseMoveEvent)
         self.released[QPointF].connect(self.execMouseReleaseEvent)
-        pass
 
     def mousePressEvent(self, mouseEvent):
         QGraphicsView.mousePressEvent(self, mouseEvent)
         if self.scene() is None:
             return
         self._selectedItem = self.scene().mouseGrabberItem()
-        pass
 
     def mouseMoveEvent(self, mouseEvent):
         QGraphicsView.mouseMoveEvent(self, mouseEvent)
         pt = mouseEvent.pos()
         currentPos = self.mapToScene(pt)
         self.moved.emit(currentPos)
-        pass
 
     def mouseReleaseEvent(self, mouseEvent):
         QGraphicsView.mouseReleaseEvent(self, mouseEvent)
@@ -37,8 +34,6 @@ class GraphicsView(QGraphicsView):
             newPos = self.mapToScene(pt)
             self.released.emit(newPos)
             self._selectedItem = None
-            pass
-        pass
 
     def execMouseMoveEvent(self, currentPos):
         if self._selectedItem is None:
@@ -46,7 +41,7 @@ class GraphicsView(QGraphicsView):
         selectedIndex = self._selectedItem.getIndex()
         newX = currentPos.x()
         newY = currentPos.y()
-        newPoint = newX, newY
+        newX, newY
         model = self.scene().getModel()
         pen = QPen(QColor("red"))
         if isinstance(model, Polyline):
@@ -56,13 +51,11 @@ class GraphicsView(QGraphicsView):
                 xNext = nextPoint[0]
                 yNext = nextPoint[1]
                 self.scene().addLine(newX, newY, xNext, yNext, pen)
-                pass
             elif selectedIndex == len(model.getPoints()) - 1:
                 previousPoint = model.getPoints()[selectedIndex - 1]
                 xPrevious = previousPoint[0]
                 yPrevious = previousPoint[1]
                 self.scene().addLine(xPrevious, yPrevious, newX, newY, pen)
-                pass
             else:
                 previousPoint = model.getPoints()[selectedIndex - 1]
                 xPrevious = previousPoint[0]
@@ -72,8 +65,6 @@ class GraphicsView(QGraphicsView):
                 xNext = nextPoint[0]
                 yNext = nextPoint[1]
                 self.scene().addLine(newX, newY, xNext, yNext, pen)
-                pass
-            pass
         elif isinstance(model, Circle):
             # Previsualisation
             radius = float(model.getRadius())
@@ -82,8 +73,6 @@ class GraphicsView(QGraphicsView):
             circleItem.setPen(pen)
             circleItem.setRect(rect)
             self.scene().addItem(circleItem)
-            pass
-        pass
 
     def execMouseReleaseEvent(self, newPos):
         if self._selectedItem is None:
@@ -95,11 +84,7 @@ class GraphicsView(QGraphicsView):
         model = self.scene().getModel()
         if isinstance(model, Polyline):
             self.scene().getController().editPoint(model, newPoint, selectedIndex)
-            pass
         elif isinstance(model, Circle):
             self.scene().getController().editCenter(model, newPoint)
-            pass
-        pass
 
 
-pass
index 87a912e414919ab070f2b3b7c25b5f64018b1fc6..edf7a278b33a77af37d65addada450ea8c9feb93 100755 (executable)
@@ -7,10 +7,8 @@ class Menu(QMenu):
 
         QMenu.__init__(self)
         self._item = item
-        pass
 
     def getItem(self):
         return self._item
 
 
-pass
index c68fc67bd112a4fe8e69a51c52776fdcd4dde3d9..3d29eca25ea0ae6a54badffed3db6de2625940e0 100755 (executable)
@@ -6,7 +6,6 @@ from GraphicsRectItem import GraphicsRectItem
 class PolyGraphicsScene(GraphicsScene):
     def __init__(self, controller):
         GraphicsScene.__init__(self, controller)
-        pass
 
     def draw(self):
         points = self.getModel().getPoints()
@@ -19,7 +18,6 @@ class PolyGraphicsScene(GraphicsScene):
             # Constructing a rectangle centered on point
             pointItem = GraphicsRectItem(xPoint - 0.1, yPoint - 0.1, 0.2, 0.2, i)
             self.addItem(pointItem)
-            pass
 
         # Linking the points with lines
         for i in range(len(points) - 1):
@@ -33,8 +31,5 @@ class PolyGraphicsScene(GraphicsScene):
             lineItem = QGraphicsLineItem()
             lineItem.setLine(line)
             self.addItem(lineItem)
-            pass
-        pass
 
 
-pass
index 8369f903f21b4d7175ee67f00ca6c72ff4d4e689..a15b0db85b66bafe3ceb10a11b46c5a05899df4a 100755 (executable)
@@ -8,7 +8,6 @@ class PolyTreeWidgetItem(TreeWidgetItem):
         """Constructor"""
 
         TreeWidgetItem.__init__(self, name, controller, actionsList)
-        pass
 
     def editInGlobalTree(self, treeWidgetItem):
         name = self.getModel().getName()
@@ -21,8 +20,5 @@ class PolyTreeWidgetItem(TreeWidgetItem):
             yPoint = point[1]
             relatedItem = treeWidgetItem.child(i)
             relatedItem.setText(0, str(xPoint) + ":" + str(yPoint))
-            pass
-        pass
 
 
-pass
index 1cd30c5edcb89ca4e8b1245b271ffec9474c41c1..ea4b44066cc08665fa91e49bf2f589d7add5b8d9 100755 (executable)
@@ -30,7 +30,6 @@ class TreeWidget(QTreeWidget):
         # Creating popup menu
         self.setContextMenuPolicy(Qt.CustomContextMenu)
         self.customContextMenuRequested[QPoint].connect(self.createPopups)
-        pass
 
     def createPopups(self, point):
         item = self.itemAt(point)
@@ -40,25 +39,18 @@ class TreeWidget(QTreeWidget):
         for action in item.getActionsList():
             if action == "Show":
                 self.menu.addAction(action).triggered.connect(self.show)
-                pass
             elif action == "Rename":
                 self.menu.addAction(action).triggered.connect(self.showRenameDialog)
-                pass
             elif action == "Delete":
                 self.menu.addAction(action).triggered.connect(self.delete)
-                pass
             else:
                 self.menu.addAction(action).triggered.connect(self.showEditDialog)
-                pass
-            pass
         self.menu.exec_(QCursor.pos())
-        pass
 
     def show(self):
         model = self.menu.getItem().getModel()
         controller = self._desktop.getController()
         controller.showModel(model)
-        pass
 
     def showRenameDialog(self):
         model = self.menu.getItem().getModel()
@@ -75,7 +67,6 @@ class TreeWidget(QTreeWidget):
         widgetDialogBox.setWidget(myDialog)
         widgetDialogBox.setWindowTitle("Object renaming")
         sgDesktop.addDockWidget(Qt.LeftDockWidgetArea, widgetDialogBox)
-        pass
 
     def delete(self):
         answer = QMessageBox.question(
@@ -88,8 +79,6 @@ class TreeWidget(QTreeWidget):
             model = self.menu.getItem().getModel()
             controller = self._desktop.getController()
             controller.removeModel(model)
-            pass
-        pass
 
     def showEditDialog(self):
         item = self.menu.getItem()
@@ -107,7 +96,6 @@ class TreeWidget(QTreeWidget):
                 oldPoint,
                 pointRange,
             )
-            pass
         elif isinstance(parentModel, Circle):
             selectedRange = parentItem.indexOfChild(item)
             oldSelected = item.text(0)
@@ -129,7 +117,6 @@ class TreeWidget(QTreeWidget):
                 )
             else:
                 pass
-            pass
         else:
             pass
 
@@ -137,7 +124,5 @@ class TreeWidget(QTreeWidget):
         widgetDialogBox.setWidget(myDialog)
         widgetDialogBox.setWindowTitle("Object edition")
         sgDesktop.addDockWidget(Qt.LeftDockWidgetArea, widgetDialogBox)
-        pass
 
 
-pass
index c24bf47e65136073fbde03390a01c415282f702c..7c15cd96de8092599f53528b838f9006fee38170 100755 (executable)
@@ -10,7 +10,6 @@ class TreeWidgetItem( View, QTreeWidgetItem ) :
        self._name = [ name ]
        QTreeWidgetItem.__init__( self, self._name )
        self._actionsList = actionsList
-       pass
 
    def getActionsList( self ) :
        return self._actionsList
@@ -18,38 +17,29 @@ class TreeWidgetItem( View, QTreeWidgetItem ) :
    def editCenter( self, center ) :
        circle = self.getModel()
        self.getController().editCenter( circle, center )
-       pass
 
    def editRadius( self, radius ) :
        circle = self.getModel()
        self.getController().editRadius( circle, radius )
-       pass
 
    def update( self, mode ) :
        if mode == 'creation' :
           self.addToGlobalTree( self )
-          pass
        elif mode == 'modification' :
           self.editInGlobalTree( self )
-          pass
        elif mode == 'supression' :
           self.removeFromGlobalTree( self )
-          pass
        else :
           return
 
    def addToGlobalTree( self, treeWidgetItem ) :
        globalTree = self.getController().getMainFrame().getGlobalTree()
        globalTree.addTopLevelItem( treeWidgetItem )
-       pass
 
    def editInGlobalTree( self, treeWidgetItem ) :
        print 'Virtual'
-       pass
 
    def removeFromGlobalTree( self, treeWidgetItem ) :
        globalTree = self.getController().getMainFrame().getGlobalTree()
        globalTree.takeTopLevelItem( globalTree.indexOfTopLevelItem(treeWidgetItem) )
-       pass
 
-pass
index 899419d3fb1d90dbbe7c2b9a628020acc7d153e5..2560ae41f996d9144e8a5d0457b344fad640ab55 100755 (executable)
@@ -5,29 +5,23 @@ class View() :
 
        self._model = None
        self._controller = controller
-       pass
 
    def getModel( self ) :
        return self._model
 
    def setModel( self, model ) :
        self._model = model
-       pass
 
    def getController( self ) :
        return self._controller
 
    def setController( self, controller ) :
        self._controller = controller
-       pass
 
    def editName( self, name ) :
        model = self.getModel()
        self._controller.editName( model, name )
-       pass
 
    def update( self, mode ) :
        print 'Virtual method'
-       pass
 
-pass
index a0efe622bb4e9177ad53b6baba9b1b560ad3ac46..6b5980856b12562448ce9941ccfbb684527f1cc6 100644 (file)
@@ -11,8 +11,6 @@
 # All configuration values have a default; values that are commented out
 # serve to show the default.
 
-import sys
-import os
 
 
 # https://stackoverflow.com/questions/23462494/how-to-add-a-custom-css-file-to-sphinx
index 36dc08664bae7babfd957a192c593b1c7d90f6be..9cf8f23d2d65fdfdad22c1e75d9782d7c0ea3a8b 100644 (file)
@@ -117,7 +117,6 @@ class ParseError(SyntaxError):
 
     """
 
-    pass
 
 
 # --------------------------------------------------------------------
index 7f6d7e8a5823899bc579ad4966a8608fb2d860fd..6bae9e4dfbfa304e3b457ef6857b15f352c2c376 100644 (file)
@@ -26,7 +26,6 @@ import shutil
 import errno
 import stat
 import fnmatch
-import pprint as PP
 from ftplib import FTP
 
 from . import pyconf
index c42fbcf12cd6c8f441a3e8edff02c5ffe9cc3837..dd7d07eecd4e12144ab437b8dfd7efb789048c45 100644 (file)
@@ -8,8 +8,6 @@
 import os
 import sys
 import inspect
-import logging
-import pprint as PP
 
 
 ##############################################################################
index 34c13ab6e4243b48b1ccc8fb1c7e03d73e3efb51..919c3e10fce2b6e9dcc8f06392f257c438a5f575 100644 (file)
@@ -110,7 +110,7 @@ else:
     def GetConsoleScreenBufferInfo(stream_id=STDOUT):
         handle = handles[stream_id]
         csbi = CONSOLE_SCREEN_BUFFER_INFO()
-        success = _GetConsoleScreenBufferInfo(handle, byref(csbi))
+        _GetConsoleScreenBufferInfo(handle, byref(csbi))
         return csbi
 
     def SetConsoleTextAttribute(stream_id, attrs):
index 8c154271518cdf305423aaeb6dad3f40eb6dafd5..70166a2d4483f54b189af95a624ece86c2de1561 100755 (executable)
@@ -225,7 +225,6 @@ class OutStream(StringIO):
 class InStream(StringIO):
     """utility class for pyconf.Config input iostream"""
 
-    pass
 
 
 def getLocalEnv():
@@ -301,7 +300,7 @@ def _saveConfigRecursiveDbg(config, aStream, indent, path, nb):
     """
 
     try:  # type config, mapping
-        order = object.__getattribute__(config, "order")
+        object.__getattribute__(config, "order")
         data = object.__getattribute__(config, "data")
     except:
         aStream.write("%s%s : '%s'\n" % (indstr, path, str(config)))
index 9df274b750edd62f897a5008b6fe9c7d8b24a8c7..77eab3b95a5f31b8533d12cfee556a09fa97f398 100644 (file)
@@ -66,7 +66,7 @@ class Environ:
             zt.delimiter = delim
             try:
                 value = zt.substitute(self.environ)
-            except KeyError as exc:
+            except KeyError:
                 pass
                 # raise src.SatException(_("Missing definition "
                 #                         "in environment: %s") % str(exc))
index 3ed0565268c4a32a86477bb2b86d6252d3332fac..feec41db9c9a06e1e23909f61494353eb5bf25bf 100644 (file)
@@ -19,7 +19,6 @@
 import os
 import sys
 import time
-import pickle
 import subprocess
 
 # OP
index f779b67e82e45d07d26ca16c53268c980dbc9c01..089d916f9e917b44926c01f2c353acd80e243255 100755 (executable)
@@ -56,4 +56,3 @@ class TestCase(unittest.TestCase):
 if __name__ == "__main__":
     verbose = False
     unittest.main()
-    pass
index 3667a0d199e06499f51c0831e5a22d106536bea8..e53f6c3c37f51a9da548212406018c8520abe3bd 100755 (executable)
@@ -16,11 +16,8 @@ salomeTools logger. using logging package
 
 import os
 import sys
-import time
-import random
 import logging as LOGI
 
-from logging.handlers import BufferingHandler
 import pprint as PP
 
 import src.debug as DBG  # Easy print stderr (for DEBUG only)
@@ -181,7 +178,7 @@ def getMessage(self):
     if self.args:
         try:  # better message on format error
             msg = msg % self.args
-        except Exception as e:
+        except Exception:
             msg = "ERROR: %s with args %s" % (msg, PP.pformat(self.args))
             log(msg, True)
     return msg
index 40f740c6948be6c1bcb0386be34dc24969a664ff..b714511f77697352cfca2027d2cdb899318b2184 100644 (file)
@@ -807,7 +807,6 @@ def check_config_exists(config, prod_dir, prod_info, verbose=False):
                 if prod_name == prod_info.name:
                     if prod_info.version == compile_cfg[prod_name]:
                         DBG.write("check_config_exists OK 333", compile_cfg, verbose)
-                        pass
                     else:  # no correspondence with newer with prod_name sat-config.pyconf files
                         config_corresponds = False
                         break
index c73558bb3b5e4688ae05b41a2ff24dc17bafac67..2b83bf9792892867f75bb5a669f6a434f300c412 100644 (file)
@@ -307,7 +307,6 @@ class ConfigError(Exception):
     This is the base class of exceptions raised by this module.
     """
 
-    pass
 
 
 class ConfigFormatError(ConfigError):
@@ -316,7 +315,6 @@ class ConfigFormatError(ConfigError):
     configurations.
     """
 
-    pass
 
 
 class ConfigResolutionError(ConfigError):
@@ -325,7 +323,6 @@ class ConfigResolutionError(ConfigError):
     configurations.
     """
 
-    pass
 
 
 def isWord(s):
@@ -990,7 +987,6 @@ class Reference(object):
                     break
                 except:
                     rv = None
-                    pass
             current = object.__getattribute__(current, "parent")
         if current is None:
             raise ConfigResolutionError(
index e166b89ee11ba02d4ecd79857c2030a6e512b313..a6040ab42a4f046ebf28f0a25321546d84cf3201 100755 (executable)
@@ -48,7 +48,6 @@ import tempfile
 import imp
 import types
 import gettext
-import traceback
 
 import src
 import src.debug as DBG  # Easy print stderr (for DEBUG only)
@@ -534,7 +533,7 @@ class Sat(object):
                     if self.options.debug_mode:
                         logger_command.write("\n" + DBG.format_exception("") + "\n", 1)
 
-                except Exception as e:
+                except Exception:
                     # here we print the stack in addition
                     logger_command.write("\n***** ", 1)
                     logger_command.write(
index df17cc6917f4efa6576ff34b14b02ed6727e3700..c083c5e0043a904413a00af2db756131910a765d 100644 (file)
@@ -143,7 +143,6 @@ class TOOLS_class(object):
         self.base_ressources_dir = base_ressources_dir
         self.tmp_dir = tmp_dir
         self.test_ressources_dir = test_ressources_dir
-        pass
 
     def init(self):
         self.inFiles = []
index 256a1c00de041012e0e125a139c2b2ea7f25262c..2ee3627745a70effccbaf55e954bab1befa7d0af 100644 (file)
@@ -100,7 +100,6 @@ with open(r'${resultFile}', 'w') as exec_result:
             pylog.write('status = "OK"\n')
             pylog.write('time = "' + timeTest.__str__() + '"\n')
 
-        pass
         # print("here testout.flush")
         testout.flush()
         # testout.close()
@@ -109,12 +108,10 @@ with open(r'${resultFile}', 'w') as exec_result:
       sys.stdout = __stdout__
       sys.stderr = __stderr__
       my_tools.writeInFiles(pylog)
-      pass
       pylog.flush()
       # pylog.close()
 
   exec_result.write('Close\n')
-  pass
   # exec_result.close()
 
 if 'PY' not in '${sessionName}':
index e56dd7ff15382eb0ec4a5dbae0728814b3ca2c13..43aa2ebd68a2a8a82d90a9ee77fa203f14c19caa 100644 (file)
@@ -34,7 +34,6 @@ import shutil
 import string
 import imp
 import subprocess
-import glob
 import pprint as PP
 
 verbose = False
@@ -380,7 +379,6 @@ class Test:
                         if verbose:
                             print("--- CRASH ldic\n%s" % PP.pformat(ldic))  # cvw TODO
                             print("--- CRASH gdic\n%s" % PP.pformat(gdic))
-                            pass
 
                     exec_time = -1
                     if "time" in ldic:
@@ -505,12 +503,10 @@ echo -e 'import os\nprint(os.environ[\"KERNEL_ROOT_DIR\"])' > tmpscript.py
                 subproc_res = subprocess.Popen(
                     cmd, stdout=subprocess.PIPE, shell=True
                 ).communicate()
-                pass
             else:
                 subproc_res = subprocess.Popen(
                     cmd, stdout=subprocess.PIPE, shell=True, executable="/bin/bash"
                 ).communicate()
-                pass
 
             root_dir = subproc_res[0].split()[-1]
 
@@ -547,7 +543,7 @@ echo -e 'import os\nprint(os.environ[\"KERNEL_ROOT_DIR\"])' > tmpscript.py
         if len(self.launcher) > 0:
             # There are two cases : The old application (runAppli)
             # and the new one
-            launcherName = os.path.basename(self.launcher)
+            os.path.basename(self.launcher)
             launcherDir = os.path.dirname(self.launcher)
             if os.path.basename(launcherDir) == "APPLI":
                 # Old application
index 7a4c07025eb5429d2cbddca5f682f737a018606b..6b26bb9d60f8f0d97fb003bdd1660676ba01f9d7 100644 (file)
@@ -27,14 +27,9 @@ all-in-one import srs.utilsSat as UTS
 | >> UTS.Popen('ls && etc...', ...)
 """
 
-import os
-import shutil
 import errno
-import stat
 import time
 
-import re
-import tempfile
 import subprocess as SP
 
 import src.returnCode as RCO
index 9746cfd5e9de9a42dd344a0e350a1d64ab35578a..be092f8ada31badd55c72955a29f550dd4e0953c 100755 (executable)
@@ -29,8 +29,6 @@ and range of versions
 | PATCH version when you make backwards-compatible bug fixes.
 """
 
-import os
-import sys
 
 verbose = False  # True
 
index 8e55cf224005176594ba7fdcd5cc8b58398ab712..62a01a91a676a07ccff625dc5ea50f587f3d387f 100644 (file)
@@ -71,7 +71,6 @@ class XmlLogFile(object):
                     f.write(
                         "<?xml-stylesheet type='text/xsl' href='./%s'?>\n" % stylesheet
                     )
-                    pass
                 res = etree.tostring(self.xmlroot, encoding="utf-8")
                 f.write(res)
         except IOError:
index 9d09ca83f597a7a4e5782031e5f4fa097eb90a6b..fb7e173438dd759b125d06d0d022f49094bc2425 100755 (executable)
@@ -17,8 +17,6 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
-import os
-import sys
 import unittest
 
 import initializeTest  # set PATH etc for test
@@ -121,4 +119,3 @@ class TestCase(unittest.TestCase):
 
 if __name__ == "__main__":
     unittest.main(exit=False)
-    pass
index 0da8c69dffc335db0a8562bfa10c7f5bc7d9f82b..a268e6f06c834d867d4471ef8485f53721c016c3 100755 (executable)
@@ -29,8 +29,6 @@ and range of versions
 | PATCH version when you make backwards-compatible bug fixes.
 """
 
-import os
-import sys
 
 import unittest
 import pprint as PP
@@ -255,4 +253,3 @@ toto_from_2""".split(
 
 if __name__ == "__main__":
     unittest.main(exit=False)
-    pass
index 3d4d0c1dc152d1dd3a05865be3fe99c2e9dbc4c2..6713cc6a2ec203e0877f161ae7e7f75c0f2f9aa0 100755 (executable)
@@ -46,12 +46,8 @@ see: http://sametmax.com/ecrire-des-logs-en-python
 |  logger.warning('Testing %s', 'foo')
 """
 
-import os
-import sys
 import unittest
-import pprint as PP
 import logging as LOGI
-from logging.handlers import BufferingHandler
 
 import src.debug as DBG
 
@@ -104,7 +100,6 @@ class TestCase(unittest.TestCase):
         if verbose:
             DBG.push_debug(True)
             # DBG.write("assert unittest", [a for a in dir(self) if "assert" in a])
-        pass
 
     def test_999(self):
         # one shot tearDown() for this TestCase
@@ -156,4 +151,3 @@ class TestCase(unittest.TestCase):
 
 if __name__ == "__main__":
     unittest.main(exit=False)
-    pass
index a62f1490d998b497532a403517c123c2e68ae300..c465937dbde1714b4c134cb53ef27bf3e8e8f0c1 100755 (executable)
@@ -17,8 +17,6 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
-import os
-import sys
 import unittest
 
 import initializeTest  # set PATH etc for test
@@ -256,4 +254,3 @@ Bienvenue, Yves
 
 if __name__ == "__main__":
     unittest.main(exit=False)
-    pass
index d092136fcf9ad418732250ab1859faf062278733..18d3a6d17d10c9a0524e78dfba4bec8de5c56a78 100755 (executable)
@@ -17,8 +17,6 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
-import os
-import sys
 import unittest
 
 import initializeTest  # set PATH etc for test
@@ -43,7 +41,7 @@ class TestCase(unittest.TestCase):
         self.assertFalse("CRITICAL" in logs)
 
     def test_000(self):
-        logger = LOG.getUnittestLogger()
+        LOG.getUnittestLogger()
         # one shot setUp() for this TestCase
         if self.debug:
             DBG.push_debug(True)
@@ -145,4 +143,3 @@ class TestCase(unittest.TestCase):
 
 if __name__ == "__main__":
     unittest.main(exit=False)
-    pass
index 8c246fb2ea63f51fb864201b2f96ed0e11c7c4c6..d928526b1e414cf7f79bcf13cb7a309d4ccfeb95 100755 (executable)
@@ -17,8 +17,6 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
-import os
-import sys
 import unittest
 
 import initializeTest  # set PATH etc for test
@@ -65,7 +63,7 @@ class TestCase(unittest.TestCase):
         self.assertFalse("CRITICAL ::" in logs)
 
     def test_000(self):
-        logger = LOG.getUnittestLogger()
+        LOG.getUnittestLogger()
         # one shot setUp() for this TestCase
         if self.debug:
             DBG.push_debug(True)
@@ -123,11 +121,10 @@ class TestCase(unittest.TestCase):
             s = SAT.Sat(logger)
             DBG.write("test_120 'sat %s'" % cmd, "expected raise", dbg)
             with self.assertRaises(Exception):
-                returnCode = s.execute_cli(cmd)
+                s.execute_cli(cmd)
             logs = logger.getLogsAndClear()
             DBG.write("logs", logs, dbg)
 
 
 if __name__ == "__main__":
     unittest.main(exit=False)
-    pass
index 9e2308f680cff05e70ee4dd25192fc1b4a401b59..db18987cf6cb221467148336663b82b0fe1c321e 100755 (executable)
@@ -92,7 +92,6 @@ to set id_rsa from/to reflexive on local machine:
 """
 
 import os
-import sys
 import unittest
 import getpass
 
@@ -203,4 +202,3 @@ class TestCase(unittest.TestCase):
 if __name__ == "__main__":
     # verbose = True # human eyes
     unittest.main(exit=False)
-    pass
index 807b1d77fbfdf725a41f255caf78b89505db712c..0a48ae36ac70962d135d9f95693cb270ed07379f 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import unittest
 
 import src.product
@@ -269,4 +268,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index c9ac3d70127c12a477ca642b3caccf1da79332d2..54be010bd32b18a1705ffd8ecfad8ed47a4302b4 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import unittest
 
 import src.product
@@ -118,4 +117,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index b00fd8d4dc3e7fccd25b3d4b0ea5de09c9a8e7a7..fc5b5b573f3897a023324fc40e662daf607a5880 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import unittest
 
 import src.product
@@ -111,4 +110,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index 6793b0a95b91533b94803ef71f774cb00a946e11..842c1cf9240c767b7e45826a5de54ce7aeeb9363 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import unittest
 
 import src.product
@@ -73,4 +72,3 @@ class TestMakeinstall(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index 882124a7f20cb932de352468de801617d5fef21a..d6a8f2dff5a79c3c8cd1734d4ef1fe3c3beb1e97 100755 (executable)
@@ -119,4 +119,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == '__main__':
     unittest.main()
-    pass
index 08b4f5d2d0fc72b817bd6f12bdeb5796e1c8c39b..0a283db142969941adb97458bd5c677435acc549 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import unittest
 
 from src.salomeTools import Sat
@@ -56,4 +55,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index b7e265300ac7bddb26b719c7f781f593709c04d1..5290d3a1c80ffb2ecf1c4fc87810a34c823e02d4 100755 (executable)
@@ -17,8 +17,6 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
-import os
-import sys
 import threading
 import time
 import unittest
@@ -76,4 +74,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index 5557fc0f40db71fe243d3050b816b812ca3db253..7db29c7ca7db8351bd0d2fda9bffd396f84545dd 100755 (executable)
@@ -17,8 +17,6 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
-import os
-import sys
 import platform
 import unittest
 
@@ -108,4 +106,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index cf7119d83b6fc4ec6288b3adcdcfbce9bed32517..a16623da33083a2bffcc01627ad0908a53b16b01 100755 (executable)
@@ -17,8 +17,6 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
-import os
-import sys
 import platform
 import unittest
 
@@ -99,4 +97,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index 868957495d12b8dbb3067f8892191a5ca4169abd..b2a822c6cd1435a7a64800f413754807a3e07200 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import unittest
 
 from src.salomeTools import Sat
@@ -149,4 +148,3 @@ class TestSource(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index d255fd08eaa8c9f62fb711f93e47f2b65ac14ee6..32e9d936872408e271b052871278fa32bc20fae5 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import unittest
 
 from src.salomeTools import Sat
@@ -125,4 +124,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index aa2f1ad5fc9ff73ed193a7011cac872e441337cd..9937f7fff95a81c996c5f568540ced3b0bd039a7 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import unittest
 
 from src.salomeTools import Sat
@@ -161,4 +160,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index 2a45cd0a281d66113805037b31489f5160a1970d..9f635fe40ed576a69e8400e489bccc535e7fc928 100755 (executable)
@@ -234,7 +234,7 @@ class TestCase(unittest.TestCase):
 
         sat.config("-v VARS.user")
 
-        nb_logs_t0 = len(os.listdir(sat.cfg.USER.log_dir))
+        len(os.listdir(sat.cfg.USER.log_dir))
 
         if os.path.exists(sat.cfg.USER.log_dir + "_save"):
             shutil.rmtree(sat.cfg.USER.log_dir + "_save")
@@ -297,4 +297,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index 76b7b5185f0e90535b6b8b2f4d871ba0902c3b3a..ea6599154d7fb0a3a1f2e3defab92eb84f10b3a0 100755 (executable)
@@ -17,8 +17,6 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
-import os
-import sys
 import threading
 import time
 import unittest
@@ -55,4 +53,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index 3203654a4127382e04ea87aedac1051e6c8e708a..7ef9c5f797f4668af9c132382879b85b05ed6fa9 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import unittest
 
 from src.salomeTools import Sat
@@ -201,4 +200,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index af7a375ee9ccbaba8148aff3f368d5835779216c..76c05485fd4d08ae0d8f716dd5e70ac5543fb4fa 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import shutil
 import unittest
 
@@ -173,4 +172,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index 92f5e04a8ac05616b47117b5c6188b4c9572ee82..f25c4ddd3d4c52afa18ef42229a2b80e225a456b 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import shutil
 import unittest
 
@@ -114,4 +113,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index ac09fe3f3718d2440315ce0bc249cc4f27365cde..542773272d2e10fcf2ca087c9795804aec305d2f 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import unittest
 
 from src.salomeTools import Sat
@@ -184,4 +183,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index 65521be254a62ecc196237d9505704e44339a953..860af29a6664103e86d2353d6ac13bbe7650489d 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import unittest
 
 from src.salomeTools import Sat
@@ -90,4 +89,3 @@ class TestCase(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index 8ea743fb2c2abfa61a81fd7599582eaa4f1ce5fe..db76f1e31889d3f92075269bcd2ab290f56e133b 100755 (executable)
@@ -18,7 +18,6 @@
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
 import os
-import sys
 import unittest
 
 from src.salomeTools import Sat
@@ -94,4 +93,3 @@ class TestTest(unittest.TestCase):
 # test launch
 if __name__ == "__main__":
     unittest.main()
-    pass
index 012f36b0f5bca9bbd8c0f22423063122c4515d5b..724dfb973325d0e40c138ddb6a490e716153c88c 100644 (file)
@@ -93,7 +93,6 @@ Version in 0.7.1
 import datetime
 import StringIO
 import sys
-import time
 import unittest
 from xml.sax import saxutils