Commit 13279c80 authored by Kryštof Pilnáček's avatar Kryštof Pilnáček

Remove unnecessary code

This change was actually unnesarry as with the new regex we iterate
over all possible combinations of package and modules.
parent 92fffbfb
......@@ -168,13 +168,6 @@ def search_include_directories(dirs, qualified_name, suffix, pos,
package_filename)
if path_exists(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
......
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