This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
19 lines
411 B
Python
19 lines
411 B
Python
"""
|
|
Waffle flags and switches
|
|
"""
|
|
|
|
|
|
from openedx.core.djangoapps.waffle_utils import WaffleSwitchNamespace
|
|
|
|
WAFFLE_NAMESPACE = u'open_edx_util'
|
|
|
|
# Switches
|
|
DISPLAY_MAINTENANCE_WARNING = u'display_maintenance_warning'
|
|
|
|
|
|
def waffle():
|
|
"""
|
|
Returns the namespaced, cached, audited Waffle class for open_edx_util.
|
|
"""
|
|
return WaffleSwitchNamespace(name=WAFFLE_NAMESPACE, log_prefix=u'OpenEdX Util: ')
|