fix language level passing in pyximport's PyImporter
authorStefan Behnel <stefan_ml@behnel.de>
Mon, 6 Aug 2012 08:53:33 +0000 (10:53 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Mon, 6 Aug 2012 08:53:33 +0000 (10:53 +0200)
pyximport/pyximport.py

index 60e1586..a8d44ba 100644 (file)
@@ -346,6 +346,7 @@ class PyImporter(PyxImporter):
                     _debug("importer found path %s for module %s", path, real_name)
                     build_module(real_name, path,
                                  pyxbuild_dir=self.pyxbuild_dir,
+                                 language_level=self.language_level,
                                  inplace=self.inplace)
                 except Exception, e:
                     if DEBUG_IMPORT: