From 91a3c91fd2d90717d586bed71345905b0b21b42d Mon Sep 17 00:00:00 2001 From: Ayub khan Date: Wed, 10 Jul 2019 15:10:05 +0500 Subject: [PATCH] INCR-377 python 3 compatibility --- openedx/core/djangoapps/ccxcon/signals.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/ccxcon/signals.py b/openedx/core/djangoapps/ccxcon/signals.py index 71804a44a0..e005278da2 100644 --- a/openedx/core/djangoapps/ccxcon/signals.py +++ b/openedx/core/djangoapps/ccxcon/signals.py @@ -1,6 +1,9 @@ """ Signal handler for posting course updated to CCXCon """ +from __future__ import absolute_import + +import six from django.dispatch.dispatcher import receiver from xmodule.modulestore.django import SignalHandler @@ -15,4 +18,4 @@ def _listen_for_course_publish(sender, course_key, **kwargs): # pylint: disable # update the course information on ccxcon using celery # import here, because signal is registered at startup, but items in tasks are not yet able to be loaded from openedx.core.djangoapps.ccxcon import tasks - tasks.update_ccxcon.delay(unicode(course_key)) + tasks.update_ccxcon.delay(six.text_type(course_key))