Skip to content

Commit

Permalink
The YAML dumper now returns UTF-8 strings
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDerval committed Apr 22, 2015
1 parent 1fc2c49 commit d88bf57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/pages/course_admin/submission_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def download_submission_set(self, submissions, filename, sub_folders):
elif sub_folder == 'username':
base_path = submission['username'] + '/' + base_path

submission_yaml = StringIO.StringIO(common.custom_yaml.dump(submission))
submission_yaml = StringIO.StringIO(common.custom_yaml.dump(submission).encode('utf-8'))
submission_yaml_fname = base_path + str(submission["_id"]) + '.test'
info = tarfile.TarInfo(name=submission_yaml_fname)
info.size = submission_yaml.len
Expand Down

0 comments on commit d88bf57

Please sign in to comment.