Skip to content

Commit

Permalink
minor: pep8 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Nov 5, 2012
1 parent eac9dce commit ac5e72c
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions moa/plugin/job/completion.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2009-2011 Mark Fiers
# The New Zealand Institute for Plant & Food Research
#
#
# This file is part of Moa - http://github.com/mfiers/Moa
#
#
# Licensed under the GPL license (see 'COPYING')
#
#
"""
**completion** - assists command line completion
------------------------------------------------
Expand All @@ -16,16 +16,13 @@
"""

import os
import time
import socket
from datetime import datetime, timedelta
import subprocess as sp

import moa.logger
import moa.logger
l = moa.logger.getLogger(__name__)

from moa.sysConf import sysConf


def hook_finish(job):
"""
cache!!
Expand All @@ -41,10 +38,9 @@ def hook_finish(job):
commandlist = sorted(sysConf.commands.keys())
with open(os.path.join(compdir, 'commands'), 'w') as F:
F.write(" ".join(commandlist))

params = job.conf.getPublicParameters()
with open(os.path.join(compdir, 'parameters'), 'w') as F:
F.write(" ".join(map(str, params)))
return


0 comments on commit ac5e72c

Please sign in to comment.