Merge "Remove white space between print and ()"
This commit is contained in:
commit
45b1430663
|
@ -101,7 +101,7 @@ def freezer_main(backup_args):
|
|||
while process.poll() is None:
|
||||
line = process.stdout.readline().strip()
|
||||
if line != '':
|
||||
print (line)
|
||||
print(line)
|
||||
output, error = process.communicate()
|
||||
|
||||
if hasattr(backup_args, 'tmp_file'):
|
||||
|
|
|
@ -195,18 +195,18 @@ class Daemon(object):
|
|||
if pid:
|
||||
os.kill(self.pid, signal.SIGTERM)
|
||||
else:
|
||||
print ('Not Running')
|
||||
print('Not Running')
|
||||
|
||||
def status(self):
|
||||
pid = self.pid
|
||||
if pid:
|
||||
print ('Running with pid: {0}'.format(pid))
|
||||
print('Running with pid: {0}'.format(pid))
|
||||
else:
|
||||
print ('Not Running')
|
||||
print('Not Running')
|
||||
|
||||
def reload(self):
|
||||
pid = self.pid
|
||||
if pid:
|
||||
os.kill(pid, signal.SIGHUP)
|
||||
else:
|
||||
print ('Not Running')
|
||||
print('Not Running')
|
||||
|
|
|
@ -214,7 +214,7 @@ def main():
|
|||
return doers[CONF.action](apiclient, CONF)
|
||||
except Exception as e:
|
||||
LOG.error(e)
|
||||
print ('ERROR {0}'.format(e))
|
||||
print('ERROR {0}'.format(e))
|
||||
return 70 # os.EX_SOFTWARE
|
||||
|
||||
freezer_scheduler = FreezerScheduler(apiclient=apiclient,
|
||||
|
@ -222,7 +222,7 @@ def main():
|
|||
job_path=CONF.jobs_dir)
|
||||
|
||||
if CONF.no_daemon:
|
||||
print ('Freezer Scheduler running in no-daemon mode')
|
||||
print('Freezer Scheduler running in no-daemon mode')
|
||||
LOG.debug('Freezer Scheduler running in no-daemon mode')
|
||||
daemon = NoDaemon(daemonizable=freezer_scheduler)
|
||||
else:
|
||||
|
|
|
@ -96,7 +96,7 @@ def do_session_create(client, args):
|
|||
raise Exception("Parameter --file required")
|
||||
session_doc = utils.load_doc_from_json_file(args.fname)
|
||||
session_id = client.sessions.create(session_doc)
|
||||
print ("Created session {0}".format(session_id))
|
||||
print("Created session {0}".format(session_id))
|
||||
|
||||
|
||||
def do_session_get(client, args):
|
||||
|
|
Loading…
Reference in New Issue