Changes in tools/jobfile.py [28f4adb:8786aa5] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/jobfile.py

    r28f4adb r8786aa5  
    2727# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2828#
    29 
    3029"""
    3130Add a source/object file pair to a checker jobfile
     
    3837def usage(prname):
    3938        "Print usage syntax"
    40         print(prname + " <JOBFILE> <SOURCE> <TARGET> <TOOL> <CATEGORY> [OPTIONS ...]")
     39        print prname + " <JOBFILE> <SOURCE> <TARGET> <TOOL> <CATEGORY> [OPTIONS ...]"
    4140
    4241def main():
     
    5352        options = " ".join(sys.argv[6:])
    5453       
    55         jobfile = open(jobfname, "a")
     54        jobfile = file(jobfname, "a")
    5655        fcntl.lockf(jobfile, fcntl.LOCK_EX)
    5756        jobfile.write("{%s},{%s},{%s},{%s},{%s},{%s}\n" % (srcfname, tgtfname, toolname, category, cwd, options))
Note: See TracChangeset for help on using the changeset viewer.