Changeset 6064dab in mainline
- Timestamp:
- 2010-01-04T23:55:24Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 04c3a21f
- Parents:
- b766352
- Location:
- tools/checkers
- Files:
-
- 2 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
tools/checkers/stanse.py
rb766352 r6064dab 34 34 import os 35 35 import subprocess 36 import jobfile 36 37 37 38 jobs = [ … … 43 44 "Print usage syntax" 44 45 print prname + " <ROOT>" 45 46 def parse_arg(record):47 "Parse jobfile line arguments"48 49 arg = []50 i = 051 current = ""52 nil = True53 inside = False54 55 while (i < len(record)):56 if (inside):57 if (record[i] == "}"):58 inside = False59 else:60 current = "%s%s" % (current, record[i])61 else:62 if (record[i] == "{"):63 nil = False64 inside = True65 elif (record[i] == ","):66 arg.append(current)67 current = ""68 nil = True69 else:70 print "Unexpected '%s'" % record[i]71 return False72 73 i += 174 75 if (not nil):76 arg.append(current)77 78 return arg79 46 80 47 def stanse(root, job): … … 97 64 output = [] 98 65 for record in records: 99 arg = parse_arg(record)66 arg = jobfile.parse_arg(record) 100 67 if (not arg): 101 68 return False
Note:
See TracChangeset
for help on using the changeset viewer.