projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd26231
)
use iglob instead of glob since we're iterating anyway
author
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 29 Sep 2013 12:17:01 +0000
(14:17 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 29 Sep 2013 12:17:01 +0000
(14:17 +0200)
Cython/Build/Dependencies.py
patch
|
blob
|
history
diff --git
a/Cython/Build/Dependencies.py
b/Cython/Build/Dependencies.py
index
021fcb4
..
1e1f970
100644
(file)
--- a/
Cython/Build/Dependencies.py
+++ b/
Cython/Build/Dependencies.py
@@
-1,7
+1,7
@@
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