--- /org/python/compiler/Module.java Tue Dec 5 23:58:46 2006 +++ Module.java Mon Jan 15 17:00:20 2007 @@ -689,6 +689,15 @@ //Add __doc__ if it exists //Add __file__ for filename (if it exists?) + if(cflags == null){ + boolean division = module.futures.areDivisionOn(); + boolean generators = module.futures.areGeneratorsAllowed(); + if(division || generators){ + cflags = new org.python.core.CompilerFlags(); + cflags.division = division; + cflags.generator_allowed = generators; + } + } Constant main = module.PyCode(node, "?", false, null, false, printResults, 0,