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
8bb7d5a2
Commit
8bb7d5a2
authored
Nov 11, 2011
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no iglob in Py2.4
parent
d71ace55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+3
-3
No files found.
Cython/Build/Dependencies.py
View file @
8bb7d5a2
from
glob
import
i
glob
from
glob
import
glob
import
re
,
os
,
sys
import
re
,
os
,
sys
...
@@ -39,7 +39,7 @@ def extended_iglob(pattern):
...
@@ -39,7 +39,7 @@ def extended_iglob(pattern):
first
,
rest
=
pattern
.
split
(
'**/'
,
1
)
first
,
rest
=
pattern
.
split
(
'**/'
,
1
)
if
first
==
''
:
if
first
==
''
:
first
=
'.'
first
=
'.'
for
root
in
i
glob
(
first
+
"/"
):
for
root
in
glob
(
first
+
"/"
):
for
path
in
extended_iglob
(
os
.
path
.
join
(
root
,
rest
)):
for
path
in
extended_iglob
(
os
.
path
.
join
(
root
,
rest
)):
if
path
not
in
seen
:
if
path
not
in
seen
:
seen
.
add
(
path
)
seen
.
add
(
path
)
...
@@ -49,7 +49,7 @@ def extended_iglob(pattern):
...
@@ -49,7 +49,7 @@ def extended_iglob(pattern):
seen
.
add
(
path
)
seen
.
add
(
path
)
yield
path
yield
path
else
:
else
:
for
path
in
i
glob
(
pattern
):
for
path
in
glob
(
pattern
):
yield
path
yield
path
def
parse_list
(
s
):
def
parse_list
(
s
):
...
...
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