summaryrefslogtreecommitdiffstats
path: root/test/CC/CC-fixture/mycc.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/CC/CC-fixture/mycc.py')
-rw-r--r--test/CC/CC-fixture/mycc.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CC/CC-fixture/mycc.py b/test/CC/CC-fixture/mycc.py
index 78017f4..eb11c87 100644
--- a/test/CC/CC-fixture/mycc.py
+++ b/test/CC/CC-fixture/mycc.py
@@ -17,18 +17,18 @@ def fake_win32_cc():
args = sys.argv[1:]
inf = None
while args:
- a = args[0]
- if a == '-o':
+ arg = args[0]
+ if arg == '-o':
out = args[1]
args = args[2:]
continue
args = args[1:]
- if a[0] not in '/-':
+ if arg[0] not in '/-':
if not inf:
- inf = a
+ inf = arg
continue
- if a[:3] == '/Fo':
- out = a[3:]
+ if arg.startswith('/Fo'):
+ out = arg[3:]
with open(inf, 'rb') as infile, open(out, 'wb') as outfile:
for line in infile: