Skip to content

Commit 57b28d2

Browse files
committed
linting and travising.
1 parent 0575e2f commit 57b28d2

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

wllvm/arglistfilter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
244244
r'^-mtune=.+$' : (0, ArgumentListFilter.compileUnaryCallback),
245245
#iam: mac stuff...
246246
r'-mmacosx-version-min=.+$' : (0, ArgumentListFilter.compileUnaryCallback),
247-
248247

249248
r'^--sysroot=.+$' : (0, ArgumentListFilter.compileUnaryCallback),
250249
r'^-print-prog-name=.*$' : (0, ArgumentListFilter.compileUnaryCallback),
@@ -288,7 +287,7 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
288287
self.isPreprocessOnly)):
289288
# Get the next argument
290289
currentItem = self._inputArgs.popleft()
291-
_logger.debug('Trying to match item ' + currentItem)
290+
_logger.debug('Trying to match item %s', currentItem)
292291
# First, see if this exact flag has a handler in the table.
293292
# This is a cheap test. Otherwise, see if the input matches
294293
# some pattern with a handler that we recognize

wllvm/extraction.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ def extraction():
3737
return 1
3838

3939
if sys.platform.startswith('freebsd') or sys.platform.startswith('linux'):
40-
process_file_unix(pArgs)
40+
return process_file_unix(pArgs)
4141
elif sys.platform.startswith('darwin'):
42-
process_file_darwin(pArgs)
43-
else:
44-
#iam: do we work on anything else?
45-
_logger.error('Unsupported or unrecognized platform: %s', sys.platform)
46-
return 1
42+
return process_file_darwin(pArgs)
43+
44+
#iam: do we work on anything else?
45+
_logger.error('Unsupported or unrecognized platform: %s', sys.platform)
46+
return 1
4747

4848

4949

0 commit comments

Comments
 (0)