INCR-152: Run python-modernize on openedx/core/djangoapps/crawlers (#20487)

This commit is contained in:
Amit
2019-05-09 17:52:31 +03:00
committed by Jeremy Bowman
parent b7052778b7
commit 5d7e58c3cb
5 changed files with 8 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
"""Admin panel for configuring which user agents we consider to be Crawlers."""
from __future__ import absolute_import
from config_models.admin import ConfigurationModelAdmin
from django.contrib import admin

View File

@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals
from django.db import migrations, models
import django.db.models.deletion

View File

@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals
from django.db import migrations, models

View File

@@ -2,6 +2,8 @@
This module handles the detection of crawlers, so that we can handle them
appropriately in other parts of the code.
"""
from __future__ import absolute_import
import six
from config_models.models import ConfigurationModel
from django.db import models

View File

@@ -2,6 +2,8 @@
"""
Tests that the request came from a crawler or not.
"""
from __future__ import absolute_import
import ddt
from django.test import TestCase
from django.http import HttpRequest