INCR-152: Run python-modernize on openedx/core/djangoapps/crawlers (#20487)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user