MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _extract_future_flags

Function _extract_future_flags

tools/python-3.11.9-amd64/Lib/doctest.py:183–193  ·  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

181######################################################################
182
183def _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
195def _normalize_module(module, depth=2):
196 """

Callers 1

runMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected