From: Stefan Behnel Date: Mon, 29 Oct 2012 22:47:08 +0000 (+0100) Subject: fix exclusion comparison in cythonize() X-Git-Tag: 0.18b1~194 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b76165afb8e46985f42fbd8eda0a883bb3e790e;p=platform%2Fupstream%2Fpython-cython.git fix exclusion comparison in cythonize() --- diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py index e4871db..26e1e6b 100644 --- a/Cython/Build/Dependencies.py +++ b/Cython/Build/Dependencies.py @@ -44,9 +44,11 @@ def extended_iglob(pattern): if '**/' in pattern: seen = set() first, rest = pattern.split('**/', 1) - if first == '': - first = '.' - for root in glob(first + "/"): + if first: + first = glob(first+'/') + else: + first = [''] + for root in first: for path in extended_iglob(join_path(root, rest)): if path not in seen: seen.add(path)