Skip to content
Snippets Groups Projects
Commit d1728b3d authored by Feanil Patel's avatar Feanil Patel
Browse files

Fixes for bokchoy running in python3.

parent 20dc1623
No related branches found
No related tags found
No related merge requests found
......@@ -230,6 +230,12 @@ def _write_files(output_root, contents, generated_suffix_map=None):
not_file = not output_file.isfile()
# Sometimes content is already unicode and sometimes it's not
# so we add this conditional here to make sure that below we're
# always working with streams of bytes.
if not isinstance(file_content, six.binary_type):
file_content = file_content.encode('utf-8')
# not_file is included to short-circuit this check, because
# read_md5 depends on the file already existing
write_file = not_file or output_file.read_md5() != hashlib.md5(file_content).digest()
......
......@@ -61,6 +61,8 @@ passenv =
XDIST_WORKER_SECURITY_GROUP
XDIST_WORKER_SUBNET
PYTHON_VERSION
LMS_CFG
STUDIO_CFG
deps =
django111: -r requirements/edx/django.txt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment