summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 9fd4f9b..9b553b0 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -356,7 +356,7 @@ class Question(models.Model):
for file_name, extract in file_names:
q_file = os.path.join(path, file_name)
if os.path.exists(q_file):
- que_file = open(q_file, 'r')
+ que_file = open(q_file, 'rb')
# Converting to Python file object with
# some Django-specific additions
django_file = File(que_file)