From a680f01aa2be9e10ca87251f02e2f54a388becff Mon Sep 17 00:00:00 2001 From: arbisoft Date: Wed, 21 Aug 2019 12:51:46 +0500 Subject: [PATCH] Fixing encode/decode issues for python3. --- lms/djangoapps/shoppingcart/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/shoppingcart/utils.py b/lms/djangoapps/shoppingcart/utils.py index e6c4c5402c..c591e39aea 100644 --- a/lms/djangoapps/shoppingcart/utils.py +++ b/lms/djangoapps/shoppingcart/utils.py @@ -69,7 +69,7 @@ def parse_lt_objects(lt_objects): for lt_object in lt_objects: if isinstance(lt_object, LTTextBox) or isinstance(lt_object, LTTextLine): # text - text_content.append(lt_object.get_text().encode('utf-8')) + text_content.append(lt_object.get_text()) elif isinstance(lt_object, LTFigure): # LTFigure objects are containers for other LT* objects, so recurse through the children text_content.append(parse_lt_objects(lt_object._objs)) # pylint: disable=protected-access