From 4de2ad4c25a74ef8234a67487c6dcd8cd5dd904a Mon Sep 17 00:00:00 2001 From: John Eskew Date: Thu, 14 Sep 2017 11:14:33 -0400 Subject: [PATCH] Upgrade lxml to use pre-built pkg - no longer requires Cython. --- common/lib/capa/capa/responsetypes.py | 3 +-- requirements/edx/base.txt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/lib/capa/capa/responsetypes.py b/common/lib/capa/capa/responsetypes.py index f1d2403dc3..da7bd34899 100644 --- a/common/lib/capa/capa/responsetypes.py +++ b/common/lib/capa/capa/responsetypes.py @@ -2468,8 +2468,7 @@ class CustomResponse(LoncapaResponse): msg = msg.replace('<', '<') # Use etree to prettify the HTML - msg = etree.tostring(fromstring_bs(msg, convertEntities=None), - pretty_print=True) + msg = etree.tostring(fromstring_bs(msg), pretty_print=True) msg = msg.replace(' ', '') diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index 040c429681..f32a9bbd8a 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -115,8 +115,7 @@ pyuca==1.1 wrapt==1.10.5 zendesk==1.1.1 -# This needs to be installed *after* Cython, which is in pre.txt -lxml==3.4.4 +lxml==3.8.0 # Used for shopping cart's pdf invoice/receipt generation reportlab==3.1.44