From 55df14e80ddcfb122eadeb60cb642f2d0a9bf419 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 25 Feb 2009 01:58:59 -0800 Subject: [PATCH] Another fix to #include ordering --- Cython/Compiler/Symtab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index 2a24b3d2..b1fdfac3 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -904,11 +904,11 @@ class ModuleScope(Scope): def add_imported_module(self, scope): if scope not in self.cimported_modules: + for filename in scope.include_files: + self.add_include_file(filename) self.cimported_modules.append(scope) for m in scope.cimported_modules: self.add_imported_module(m) - for filename in scope.include_files: - self.add_include_file(filename) def add_imported_entry(self, name, entry, pos): if entry not in self.entries: -- 2.26.2