From 0ee15b1829125b6844ac13f437c2d9bd61a4ceca Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 17 Apr 2013 08:35:40 +0200 Subject: [PATCH] minor code cleanups --- Cython/Build/Dependencies.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py index 466cb76..3c04f72 100644 --- a/Cython/Build/Dependencies.py +++ b/Cython/Build/Dependencies.py @@ -309,11 +309,12 @@ def resolve_depends(depends, include_dirs): @cached_function def resolve_depend(depend, include_dirs): if depend[0] == '<' and depend[-1] == '>': - return + return None for dir in include_dirs: path = join_path(dir, depend) if path_exists(path): return os.path.normpath(path) + return None @cached_function def parse_dependencies(source_filename): @@ -481,7 +482,7 @@ class DependencyTree(object): externs = self.cimports_and_externs(filename)[1] if externs: if 'depends' in info.values: - info.values['depends'] = list(set(info.values['depends']).union(set(externs))) + info.values['depends'] = list(set(info.values['depends']).union(externs)) else: info.values['depends'] = list(externs) return info -- 2.7.4