Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions OutputCheck/CheckFileParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def __init__(self, checkPrefix, lineCommentPrefix):

if getattr(object,'directiveToken',None) != None:
# Found a match
directives.append( directive( Regex=re.compile(directivePrefix +
object.directiveToken() +
'\s*' + # Ignore all whitespace after directive
directives.append( directive( Regex=re.compile(directivePrefix +
object.directiveToken() +
r'\s*' + # Ignore all whitespace after directive
patternRegex),
Class=object
)
Expand Down
2 changes: 1 addition & 1 deletion OutputCheck/Driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def enum(*sequential, **named):

def main(args):
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('check_file', type=argparse.FileType('rU'), help='File containing check commands')
parser.add_argument('check_file', type=argparse.FileType('r'), help='File containing check commands')
parser.add_argument('--file-to-check=', type=argparse.FileType('r'), default='-', help='File to check (default %(default)s)')
parser.add_argument('--check-prefix=', default='CHECK', help='Prefix to use from check_file')
parser.add_argument("-l","--log-level",type=str, default="INFO", choices=['debug','info','warning','error'])
Expand Down