908b49cb7d2d527b701996f0d0b9e1e19e765819,debug_toolbar/settings.py,,,#,16
Before Change
CONFIG = {}
CONFIG.update(CONFIG_DEFAULTS)
CONFIG.update(getattr(settings, "DEBUG_TOOLBAR_CONFIG", {}))
PANELS_DEFAULTS = [
"debug_toolbar.panels.versions.VersionsPanel",
After Change
CONFIG = CONFIG_DEFAULTS.copy()
USER_CONFIG = getattr(settings, "DEBUG_TOOLBAR_CONFIG", {})
// Backward-compatibility for 1.0, remove in 2.0.
_RENAMED_CONFIG = {
"RESULTS_STORE_SIZE": "RESULTS_CACHE_SIZE",
"ROOT_TAG_ATTRS": "ROOT_TAG_EXTRA_ATTRS",
"HIDDEN_STACKTRACE_MODULES": "HIDE_IN_STACKTRACES"
}
for old_name, new_name in _RENAMED_CONFIG.items():
if old_name in USER_CONFIG:
warnings.warn(
"%r was renamed to %r. Update your DEBUG_TOOLBAR_CONFIG "
"setting." % (old_name, new_name), DeprecationWarning)
USER_CONFIG[new_name] = USER_CONFIG.pop(old_name)
if "TAG" in USER_CONFIG:
warnings.warn(
"TAG was replaced by INSERT_BEFORE. Update your "
"DEBUG_TOOLBAR_CONFIG setting.", DeprecationWarning)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: jazzband/django-debug-toolbar
Commit Name: 908b49cb7d2d527b701996f0d0b9e1e19e765819
Time: 2013-11-24
Author: aymeric.augustin@m4x.org
File Name: debug_toolbar/settings.py
Class Name:
Method Name:
Project Name: prody/ProDy
Commit Name: bfe9a636ea6bd4f858b86880aa84de45b33b511a
Time: 2018-03-13
Author: shz66@pitt.edu
File Name: prody/atomic/atomic.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 533799656e19ae0f6c94c63ad91cb107daf607a4
Time: 2016-04-22
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/alexa.py
Class Name:
Method Name: setup