From d1703a29886dea085aab96843ec3ad3a2cf905d4 Mon Sep 17 00:00:00 2001
From: Romain Boman <romain.boman@gmail.com>
Date: Wed, 8 Apr 2020 16:35:03 +0200
Subject: [PATCH] convert to utf-8

---
 cleanLocalHdd.py           |  2 +-
 externalProgramPath.py     |  2 +-
 externalProgramPathGui.pyw |  2 +-
 launch.py                  | 12 ++++++------
 launchGui.pyw              |  2 +-
 parametricJob.py           | 12 ++++++------
 postProLoop.py             |  2 +-
 postProLoopGui.pyw         |  2 +-
 prmClasses.py              |  2 +-
 prmClassesGui.py           |  2 +-
 10 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/cleanLocalHdd.py b/cleanLocalHdd.py
index 568dc95..d345543 100755
--- a/cleanLocalHdd.py
+++ b/cleanLocalHdd.py
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# -*- coding: latin-1; -*-
+# -*- coding: utf-8 -*-
 #
 # Script cleanLocalHdd.py : listing de l'utilisation et nettoyage des disques locaux sur le cluster
 #
diff --git a/externalProgramPath.py b/externalProgramPath.py
index 42c694f..b268356 100755
--- a/externalProgramPath.py
+++ b/externalProgramPath.py
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# -*- coding: latin-1; -*-
+# -*- coding: utf-8 -*-
 #
 # Define external program paths according to local configuration
 
diff --git a/externalProgramPathGui.pyw b/externalProgramPathGui.pyw
index 6418d85..ef95028 100755
--- a/externalProgramPathGui.pyw
+++ b/externalProgramPathGui.pyw
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# -*- coding: latin-1; -*-
+# -*- coding: utf-8 -*-
 #
 # Gui to configure externals program path according to local configuration
 
diff --git a/launch.py b/launch.py
index f20d199..223fa11 100755
--- a/launch.py
+++ b/launch.py
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# -*- coding: latin-1; -*-
+# -*- coding: utf-8 -*-
 #
 # Script "launch.py": aide au lancement d'un job Metafor
 
@@ -16,9 +16,9 @@ class LaunchJob(ParametricJob):
         self.jobId=_jobId
         cfgfile="launch%s.cfg"%self.jobId
         ParametricJob.__init__(self, cfgfile)
-        # gestion des dépendances entre paramètres 
+        # gestion des dépendances entre paramètres 
         self.applyDependencies()
-        # liens vers launchGui (lorsque lancé par ce biais pour interaction)
+        # liens vers launchGui (lorsque lancé par ce biais pour interaction)
         self.launchGui = None
         self.outFile   = None
 
@@ -391,7 +391,7 @@ class LaunchJob(ParametricJob):
             pin.write('battery.verif()\n')
         else:
             pin.write('battery.start("run")\n')
-        #pin.write('battery.verif()\n') # pas très utile dans le cadre de launch ou faudrait faire un verif + malin)
+        #pin.write('battery.verif()\n') # pas très utile dans le cadre de launch ou faudrait faire un verif + malin)
         # write to exit python at the end of job
         pin.write('quit()\n')
 
@@ -402,7 +402,7 @@ class LaunchJob(ParametricJob):
         else:
             #close pin flux
             pin.close()
-            # flush des outfile pour déjà avoir un max d'info de debug
+            # flush des outfile pour déjà avoir un max d'info de debug
             self.outFile.flush()
             # waiting execution time
             retcode = p.wait()
@@ -490,7 +490,7 @@ class LaunchJob(ParametricJob):
                  self.pars['LOCALDISK'].val == True and self.pars['ALGORITHM'].val != "restart":
             print "Getting back local disk workspace to home disk"
             self.moveLocalDir2Home(self.jobId)
-            if os.path.isdir(self.getLocalDiskDir(self.jobId)): # si la copie a été bien faite => le local dir a été nettoyé => on peut virer les scripts
+            if os.path.isdir(self.getLocalDiskDir(self.jobId)): # si la copie a été bien faite => le local dir a été nettoyé => on peut virer les scripts
                 if os.path.isfile(self.cpNodeResultsScriptName(self.jobId)):
                     os.remove(self.cpNodeResultsScriptName(self.jobId))
                 if os.path.isfile(self.rmNodeResultsScriptName(self.jobId)):
diff --git a/launchGui.pyw b/launchGui.pyw
index 56e2a41..c9e7a28 100755
--- a/launchGui.pyw
+++ b/launchGui.pyw
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# -*- coding: latin-1; -*-
+# -*- coding: utf-8 -*-
 #
 # GUI de launch.py - version Qt
 #
diff --git a/parametricJob.py b/parametricJob.py
index 601d79d..ffb8ec0 100644
--- a/parametricJob.py
+++ b/parametricJob.py
@@ -1,4 +1,4 @@
-# -*- coding: latin-1; -*-
+# -*- coding: utf-8 -*-
 
 import sys, os, os.path, shutil, socket, platform, glob, fnmatch
 import datetime, tarfile, subprocess, string
@@ -185,7 +185,7 @@ class ParametricJob(PRMSet):
         file.write("import subprocess, sys\n")
         file.write("print 'Copying data from %s local disk started ...'\n"%(nodeHost))
         #cpCmd = 'ssh %s \"cp -pRvu %s %s\"' % (nodeHost, localWSpace, homeDir)
-        #file.write("cpCmd = 'rsync -e ssh -avz --delete-after %s:%s %s'" % (nodeHost, localWSpace, homeDir)) # --delete-after supprime les fichiers de la cible (homeDir) ne se trouvant pas dans la source (localNodeDir) après le transfert
+        #file.write("cpCmd = 'rsync -e ssh -avz --delete-after %s:%s %s'" % (nodeHost, localWSpace, homeDir)) # --delete-after supprime les fichiers de la cible (homeDir) ne se trouvant pas dans la source (localNodeDir) après le transfert
         file.write("cpCmd = 'rsync -e ssh -avz %s:%s %s'\n" % (nodeHost, localWSpace, homeDir))
         file.write("outCp = subprocess.call(cpCmd, shell=True)\n")
         file.write("if outCp == 0:\n")
@@ -228,14 +228,14 @@ class ParametricJob(PRMSet):
         try: # -R : recursif / p : preserve attribut (owner/mode/timestamp)  / u : update (copy only if source is newer than target)/ v : verbose
             ##cmd1 = "cp -Rpuv %s/* %s"%(localNodeDir, homeDir)
             #cmd1 = "cp -Rpu %s/* %s"%(localNodeDir, homeDir)
-            #cmd1 = "rsync -avz --delete-after  %s/* %s"%(localNodeDir, homeDir)   # --delete-after supprime les fichiers de la cible (homeDir) ne se trouvant pas dans la source (localNodeDir) après le transfert
+            #cmd1 = "rsync -avz --delete-after  %s/* %s"%(localNodeDir, homeDir)   # --delete-after supprime les fichiers de la cible (homeDir) ne se trouvant pas dans la source (localNodeDir) après le transfert
             cmd1 = "rsync -avz %s/* %s"%(localNodeDir, homeDir)
-            #--remove-source-files permet de nettoyer la source, mais ca risque de poser problème avec le check ci dessous
+            #--remove-source-files permet de nettoyer la source, mais ca risque de poser problème avec le check ci dessous
             # qui plus est, ne supprime pas l'arborescence, juste les fichiers => nettoyage incomplet
             print "cmd1 = ", cmd1
             subprocess.call([cmd1],stderr=subprocess.STDOUT, shell=True) #use of subprocess to be able to catch errors
             #execfile(self.cpNodeResultsScriptName(jobId))
-            # check que la copie soit bonne (même fichiers des 2 cotés)
+            # check que la copie soit bonne (même fichiers des 2 cotés)
             import filecmp
             cmp = filecmp.dircmp(localNodeDir,homeDir)
             #print "cmp.report() = ",cmp.report()
@@ -670,7 +670,7 @@ class ParametricJob(PRMSet):
 def recCmp(cmp):
     copyOk = True
     #print "cmp.left = ", cmp.left
-    if len(cmp.left_only) != 0:# on a des fichiers manquants ou différents
+    if len(cmp.left_only) != 0:# on a des fichiers manquants ou différents
         print "local files only : ", cmp.left_only
         copyOk = False
     if len(cmp.diff_files) != 0: # fichiers differents
diff --git a/postProLoop.py b/postProLoop.py
index b41a34b..4c80473 100755
--- a/postProLoop.py
+++ b/postProLoop.py
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# -*- coding: latin-1; -*-
+# -*- coding: utf-8 -*-
 # $Id: externalProgramPath.py 2645 2016-05-12 06:29:38Z boman $
 #
 #
diff --git a/postProLoopGui.pyw b/postProLoopGui.pyw
index 3dac29b..84bbc9a 100755
--- a/postProLoopGui.pyw
+++ b/postProLoopGui.pyw
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# -*- coding: latin-1; -*-
+# -*- coding: utf-8 -*-
 # $Id: externalProgramPathGui.pyw 2384 2015-09-22 10:07:54Z papeleux $
 #
 #
diff --git a/prmClasses.py b/prmClasses.py
index a486991..3988764 100644
--- a/prmClasses.py
+++ b/prmClasses.py
@@ -1,4 +1,4 @@
-# -*- coding: latin-1; -*-
+# -*- coding: utf-8 -*-
 #
 # Classes de gestion des parametres
 
diff --git a/prmClassesGui.py b/prmClassesGui.py
index 3f3f549..68b5b1b 100644
--- a/prmClassesGui.py
+++ b/prmClassesGui.py
@@ -1,4 +1,4 @@
-# -*- coding: latin-1; -*-
+# -*- coding: utf-8 -*-
 # $Id: prmClassesGui.py 2645 2016-05-12 06:29:38Z boman $
 #
 #
-- 
GitLab