Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
3244f6aa
Commit
3244f6aa
authored
Jun 12, 2016
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify some code
parent
de660bb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+6
-7
No files found.
Cython/Build/Dependencies.py
View file @
3244f6aa
...
...
@@ -196,15 +196,14 @@ class DistutilsInfo(object):
self
.
values
=
{}
if
source
is
not
None
:
for
line
in
line_iter
(
source
):
line
=
line
.
strip
()
if
line
!=
''
and
line
[
0
]
!=
'#'
:
line
=
line
.
lstrip
()
if
not
line
:
continue
if
line
[
0
]
!=
'#'
:
break
line
=
line
[
1
:].
strip
()
line
=
line
[
1
:].
l
strip
()
if
line
[:
10
]
==
'distutils:'
:
line
=
line
[
10
:]
ix
=
line
.
index
(
'='
)
key
=
str
(
line
[:
ix
].
strip
())
value
=
line
[
ix
+
1
:].
strip
()
key
,
_
,
value
=
[
s
.
strip
()
for
s
in
line
[
10
:].
partition
(
'='
)]
type
=
distutils_settings
[
key
]
if
type
in
(
list
,
transitive_list
):
value
=
parse_list
(
value
)
...
...
Write
Preview
Markdown
is supported
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