Python __builtin__ 模块,_APPENGINE_FEATURE_FLAGS 实例源码

我们从Python开源项目中,提取了以下5个代码示例,用于说明如何使用__builtin__._APPENGINE_FEATURE_FLAGS

项目:Intranet-Penetration    作者:yuxiaokui    | 项目源码 | 文件源码
def IsEnabled(feature_name, default=False):
  """Indicates if a specific feature flag is enabled.

  Args:
    feature_name: The name of the feature flag to check.
    default: Default value if the flags are not initialized (In a test
             environment for example).

  Returns:
    True/False if the flag is set/not set or default if the feature flags
    were not initialized.
  """
  try:

    return feature_name in __builtin__._APPENGINE_FEATURE_FLAGS
  except AttributeError:
    return default
项目:MKFQ    作者:maojingios    | 项目源码 | 文件源码
def IsEnabled(feature_name, default=False):
  """Indicates if a specific feature flag is enabled.

  Args:
    feature_name: The name of the feature flag to check.
    default: Default value if the flags are not initialized (In a test
             environment for example).

  Returns:
    True/False if the flag is set/not set or default if the feature flags
    were not initialized.
  """
  try:

    return feature_name in __builtin__._APPENGINE_FEATURE_FLAGS
  except AttributeError:
    return default
项目:xxNet    作者:drzorm    | 项目源码 | 文件源码
def IsEnabled(feature_name, default=False):
  """Indicates if a specific feature flag is enabled.

  Args:
    feature_name: The name of the feature flag to check.
    default: Default value if the flags are not initialized (In a test
             environment for example).

  Returns:
    True/False if the flag is set/not set or default if the feature flags
    were not initialized.
  """
  try:

    return feature_name in __builtin__._APPENGINE_FEATURE_FLAGS
  except AttributeError:
    return default
项目:Deploy_XXNET_Server    作者:jzp820927    | 项目源码 | 文件源码
def IsEnabled(feature_name, default=False):
  """Indicates if a specific feature flag is enabled.

  Args:
    feature_name: The name of the feature flag to check.
    default: Default value if the flags are not initialized (In a test
             environment for example).

  Returns:
    True/False if the flag is set/not set or default if the feature flags
    were not initialized.
  """
  try:

    return feature_name in __builtin__._APPENGINE_FEATURE_FLAGS
  except AttributeError:
    return default
项目:Docker-XX-Net    作者:kuanghy    | 项目源码 | 文件源码
def IsEnabled(feature_name, default=False):
  """Indicates if a specific feature flag is enabled.

  Args:
    feature_name: The name of the feature flag to check.
    default: Default value if the flags are not initialized (In a test
             environment for example).

  Returns:
    True/False if the flag is set/not set or default if the feature flags
    were not initialized.
  """
  try:

    return feature_name in __builtin__._APPENGINE_FEATURE_FLAGS
  except AttributeError:
    return default