Drop custom formatwarning from settings.py
openstack_dashboard/settings.py defines a custom formatwarning function,
but it looks unnecessary. When using the custom function, there are
downsides: locations which cause warnings are not shown, and
no newline is added at the end of warning messages.
@@ -20,7 +20,6 @@ import glob
import logging
import os
import sys
-import warnings
from django.utils.translation import ugettext_lazy as _
@@ -45,9 +44,6 @@ from openstack_dashboard.defaults import * # noqa: F403,H303
_LOG = logging.getLogger(__name__)
-warnings.formatwarning = lambda message, category, *args, **kwargs: \
- '%s: %s' % (category.__name__, message)
-
ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
if ROOT_PATH not in sys.path:
