Commit 867c9a5f authored by Kryštof Pilnáček's avatar Kryštof Pilnáček Committed by Stefan Behnel

Remove unnecessary code

This change was actually unnesarry as with the new regex we iterate
over all possible combinations of package and modules.
parent ff88c735
...@@ -168,13 +168,6 @@ def search_include_directories(dirs, qualified_name, suffix, pos, ...@@ -168,13 +168,6 @@ def search_include_directories(dirs, qualified_name, suffix, pos,
package_filename) package_filename)
if path_exists(path): if path_exists(path):
return path return path
inits = {"__init__.py", "__init__.pyx", "__init__.pxd"} - {package_filename}
paths = [os.path.join(dir, package_dir, module_name,
init_filename) for init_filename in inits]
if any(path_exists(p) for p in paths):
path = os.path.join(dir, package_dir, module_name, 'sub.pxd')
if path_exists(path):
return path
return None return None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment