def _extract_future_flags(globs):
 flags = 0
 for fname in __future__.all_feature_names:
  feature = globs.get(fname, None)
  if (feature is getattr(__future__, fname)):
   flags |= feature.compiler_flag
 return flags

def _extract_future_flags ( globs ) : flags = 0 for fname in __future__ . all_feature_names : feature = globs . get ( fname , None ) if ( feature is getattr ( __future__ , fname ) ) : flags |= feature . compiler_flag return flags
return the compiler-flags associated with the future features that have been imported into the given namespace .