Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.extension
Commits
fe049742
Commit
fe049742
authored
May 16, 2014
by
André Anjos
💬
Browse files
Python2/3 compatibility
parent
b2e6c0e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
xbob/extension/__init__.py
View file @
fe049742
...
...
@@ -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
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment