Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
d1728b3d
Commit
d1728b3d
authored
5 years ago
by
Feanil Patel
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for bokchoy running in python3.
parent
20dc1623
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/lib/xmodule/xmodule/static_content.py
+6
-0
6 additions, 0 deletions
common/lib/xmodule/xmodule/static_content.py
tox.ini
+2
-0
2 additions, 0 deletions
tox.ini
with
8 additions
and
0 deletions
common/lib/xmodule/xmodule/static_content.py
+
6
−
0
View file @
d1728b3d
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
2
−
0
View file @
d1728b3d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment