

def IsEnabled(feature_name, default=False):
    'Indicates if a specific feature flag is enabled.\n\n  Args:\n    feature_name: The name of the feature flag to check.\n    default: Default value if the flags are not initialized (In a test\n             environment for example).\n\n  Returns:\n    True/False if the flag is set/not set or default if the feature flags\n    were not initialized.\n  '
    try:
        return (feature_name in __builtin__._APPENGINE_FEATURE_FLAGS)
    except AttributeError:
        return default

dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/runtime/features/__init__.py IsEnabled/original