Return the compiler-flags associated with the future features that have been imported into the given namespace (globs).
(globs)
| 181 | ###################################################################### |
| 182 | |
| 183 | def _extract_future_flags(globs): |
| 184 | """ |
| 185 | Return the compiler-flags associated with the future features that |
| 186 | have been imported into the given namespace (globs). |
| 187 | """ |
| 188 | flags = 0 |
| 189 | for fname in __future__.all_feature_names: |
| 190 | feature = globs.get(fname, None) |
| 191 | if feature is getattr(__future__, fname): |
| 192 | flags |= feature.compiler_flag |
| 193 | return flags |
| 194 | |
| 195 | def _normalize_module(module, depth=2): |
| 196 | """ |