chore: Removed python_2_unicode_compatible decorator. (#28342)
* chore: Removed python_2_unicode_compatible decorator.
This commit is contained in:
@@ -23,7 +23,7 @@ from datetime import datetime
|
||||
from xml.sax.saxutils import unescape
|
||||
|
||||
import six
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
from lxml import etree
|
||||
from pytz import UTC
|
||||
|
||||
@@ -128,7 +128,6 @@ class LoncapaSystem(object):
|
||||
self.matlab_api_key = matlab_api_key
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class LoncapaProblem(object):
|
||||
"""
|
||||
Main class for capa Problems.
|
||||
|
||||
@@ -53,7 +53,7 @@ import pyparsing
|
||||
import six
|
||||
from calc.preview import latex_preview
|
||||
from chem import chemcalc
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
from lxml import etree
|
||||
from six import text_type
|
||||
|
||||
@@ -73,7 +73,6 @@ log = logging.getLogger(__name__)
|
||||
registry = TagRegistry() # pylint: disable=invalid-name
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Status(object):
|
||||
"""
|
||||
Problem status
|
||||
|
||||
@@ -34,7 +34,7 @@ import six
|
||||
# specific library imports
|
||||
from calc import UndefinedVariable, UnmatchedParenthesis, evaluator
|
||||
from django.utils import html
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
from lxml import etree
|
||||
from lxml.html.soupparser import fromstring as fromstring_bs # uses Beautiful Soup!!! FIXME?
|
||||
from pyparsing import ParseException
|
||||
@@ -110,7 +110,6 @@ class StudentInputError(Exception):
|
||||
# Main base class for CAPA responsetypes
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class LoncapaResponse(six.with_metaclass(abc.ABCMeta, object)):
|
||||
"""
|
||||
Base class for CAPA responsetypes. Each response type (ie a capa question,
|
||||
|
||||
Reference in New Issue
Block a user