Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing up to python3 #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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