INCR-366 python3 compatibility

This commit is contained in:
Ayub khan
2019-07-10 14:46:34 +05:00
parent 92c7a43011
commit a218ba62b7
2 changed files with 6 additions and 4 deletions

View File

@@ -9,11 +9,12 @@ This management command will manually trigger the receivers we care about.
(We don't want to trigger all receivers for these signals, since these are busy
signals.)
"""
from __future__ import print_function, division
from __future__ import absolute_import, division, print_function
import logging
import math
import time
import sys
import time
import dateutil.parser
from django.contrib.auth.models import User
@@ -21,6 +22,7 @@ from django.core.management.base import BaseCommand, CommandError
from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey
from pytz import UTC
from six.moves import range
from lms.djangoapps.certificates.api import get_recently_modified_certificates
from lms.djangoapps.grades.api import get_recently_modified_grades
@@ -29,7 +31,6 @@ from openedx.core.djangoapps.credentials.signals import handle_cert_change, send
from openedx.core.djangoapps.programs.signals import handle_course_cert_changed
from openedx.core.djangoapps.site_configuration.models import SiteConfiguration
log = logging.getLogger(__name__)

View File

@@ -1,6 +1,8 @@
"""
This file contains celery tasks for credentials-related functionality.
"""
from __future__ import absolute_import
from celery import task
from celery.utils.log import get_task_logger
from django.conf import settings
@@ -9,7 +11,6 @@ from opaque_keys.edx.keys import CourseKey
from openedx.core.djangoapps.credentials.utils import get_credentials_api_client
logger = get_task_logger(__name__)
# Under cms the following setting is not defined, leading to errors during tests.