From 9892e178505fe6af83c2b26c422cfc115580b8d1 Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Thu, 16 Jun 2016 16:30:43 +0200 Subject: [PATCH] pep8 --- commands/jobs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/jobs.py b/commands/jobs.py index 04a2385..7a7fe6a 100644 --- a/commands/jobs.py +++ b/commands/jobs.py @@ -43,7 +43,7 @@ parser.add_option('p', 'publish', 'boolean', 'publish', "display the jobs status."), False) -class machine(object): +class Machine(object): '''Class to manage a ssh connection on a machine ''' def __init__(self, name, host, user, port=22, passwd=None, sat_path="salomeTools"): @@ -98,7 +98,7 @@ class machine(object): message = "Warning : trying to ask if the connection to " "(host: %s, port: %s, user: %s) is OK whereas there were" " no connection request" % \ - (machine.host, machine.port, machine.user) + (self.host, self.port, self.user) logger.write( src.printcolors.printcWarning(message)) return self._connection_successful @@ -209,7 +209,7 @@ class machine(object): logger.write("Connection : " + status + "\n\n") -class job(object): +class Job(object): '''Class to manage one job ''' def __init__(self, name, machine, application, distribution, @@ -548,7 +548,7 @@ class Jobs(object): if 'distribution' in job_def: distribution = job_def.distribution - return job(name, + return Job(name, machine, application, distribution, @@ -608,7 +608,7 @@ class Jobs(object): else: sat_path = machine_def.sat_path - a_machine = machine( + a_machine = Machine( machine_def.name, host, user, -- 2.39.2