MCPcopy Index your code
hub / github.com/python/cpython / _extract_future_flags

Function _extract_future_flags

Lib/doctest.py:203–213  ·  view source on GitHub ↗

Return the compiler-flags associated with the future features that have been imported into the given namespace (globs).

(globs)

Source from the content-addressed store, hash-verified

201######################################################################
202
203def _extract_future_flags(globs):
204 """
205 Return the compiler-flags associated with the future features that
206 have been imported into the given namespace (globs).
207 """
208 flags = 0
209 for fname in __future__.all_feature_names:
210 feature = globs.get(fname, None)
211 if feature is getattr(__future__, fname):
212 flags |= feature.compiler_flag
213 return flags
214
215def _normalize_module(module, depth=2):
216 """

Callers 1

runMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…