Commit fe049742 authored by André Anjos's avatar André Anjos 💬
Browse files

Python2/3 compatibility

parent b2e6c0e7
......@@ -100,13 +100,16 @@ def reorganize_isystem(args):
remainder = []
includes = []
iterable = iter(args)
for k in iterable:
if k in ('-isystem',):
k = iterable.next()
includes.append(k)
skip = False
for i in range(len(args)):
if skip:
skip = False
continue
if args[i] == '-isystem':
includes.append(args[i+1])
skip = True
else:
remainder.append(k)
remainder.append(args[i])
includes = uniq(includes[::-1])[::-1]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment