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
80eaeaab
Commit
80eaeaab
authored
Sep 29, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use iglob instead of glob since we're iterating anyway
parent
fd26231a
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 @
80eaeaab
import
cython
from
Cython
import
__version__
from
glob
import
glob
from
glob
import
i
glob
import
re
,
os
,
sys
,
time
try
:
import
gzip
...
...
@@ -65,7 +65,7 @@ def extended_iglob(pattern):
seen
=
set
()
first
,
rest
=
pattern
.
split
(
'**/'
,
1
)
if
first
:
first
=
glob
(
first
+
'/'
)
first
=
i
glob
(
first
+
'/'
)
else
:
first
=
[
''
]
for
root
in
first
:
...
...
@@ -78,7 +78,7 @@ def extended_iglob(pattern):
seen
.
add
(
path
)
yield
path
else
:
for
path
in
glob
(
pattern
):
for
path
in
i
glob
(
pattern
):
yield
path
@
cached_function
...
...
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