summaryrefslogtreecommitdiffstats
path: root/test/fixture/mylink.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixture/mylink.py')
-rw-r--r--test/fixture/mylink.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/fixture/mylink.py b/test/fixture/mylink.py
index a0b4e27..f462655 100644
--- a/test/fixture/mylink.py
+++ b/test/fixture/mylink.py
@@ -23,16 +23,16 @@ def fake_link():
def fake_win32_link():
args = sys.argv[1:]
while args:
- a = args[0]
- if a == '-o':
+ arg = args[0]
+ if arg == '-o':
out = args[1]
args = args[2:]
continue
- if a[0] not in '/-':
+ if arg[0] not in '/-':
break
args = args[1:]
- if a.lower().startswith('/out:'):
- out = a[5:]
+ if arg.lower().startswith('/out:'):
+ out = arg[5:]
with open(args[0], 'rb') as ifp, open(out, 'wb') as ofp:
for line in ifp:
if not line.startswith(b'#link'):