Fixing python-modernize issues.

This commit is contained in:
arbisoft
2019-07-10 15:41:27 +05:00
parent 92c7a43011
commit 6155f2c81f
3 changed files with 9 additions and 2 deletions

View File

@@ -17,6 +17,8 @@ interface, as well.
.. _Django-Pipeline: https://django-pipeline.readthedocs.org/
.. _Django-Require: https://github.com/etianen/django-require
"""
from __future__ import absolute_import
import os
from collections import OrderedDict

View File

@@ -4,6 +4,8 @@ Helpers for accessing comprehensive theming related variables.
This file is imported at startup. Imports of models or things which import models will break startup on Django 1.9+. If
you need models here, please import them inside the function which uses them.
"""
from __future__ import absolute_import
import os
import re
from logging import getLogger

View File

@@ -2,6 +2,8 @@
Views file for theming administration.
"""
from __future__ import absolute_import
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.http import Http404
@@ -9,15 +11,16 @@ from django.shortcuts import redirect
from django.template.loader import render_to_string
from django.utils.decorators import method_decorator
from django.utils.translation import ugettext as _
from web_fragments.fragment import Fragment
from openedx.core.djangoapps.plugin_api.views import EdxFragmentView
from openedx.core.djangoapps.user_api.preferences.api import (
delete_user_preference,
get_user_preference,
set_user_preference,
set_user_preference
)
from openedx.core.djangoapps.util.user_messages import PageLevelMessages
from student.roles import GlobalStaff
from web_fragments.fragment import Fragment
from .helpers import theme_exists
from .models import SiteTheme