summaryrefslogtreecommitdiff
path: root/yaksh/error_messages.py
diff options
context:
space:
mode:
authoradityacp2020-01-24 10:03:39 +0530
committeradityacp2020-01-24 10:03:39 +0530
commit547575e98d119a00472efe3d70693ed972468031 (patch)
tree2fc350741ebf7d78ec62eb2b41f262d53514e612 /yaksh/error_messages.py
parentebbb1b4d3dcec668b901200de7b31253162da80c (diff)
parent7edfc63ab89d65337e17e8a79e8114a74b2146e3 (diff)
downloadonline_test-547575e98d119a00472efe3d70693ed972468031.tar.gz
online_test-547575e98d119a00472efe3d70693ed972468031.tar.bz2
online_test-547575e98d119a00472efe3d70693ed972468031.zip
Resolve conflicts in grade user, custom filters etc
Diffstat (limited to 'yaksh/error_messages.py')
-rw-r--r--yaksh/error_messages.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yaksh/error_messages.py b/yaksh/error_messages.py
index f34bf28..2d27417 100644
--- a/yaksh/error_messages.py
+++ b/yaksh/error_messages.py
@@ -34,8 +34,7 @@ def _get_incorrect_user_lines(exp_lines, user_lines):
err_line_numbers = []
for line_no, (expected_line, user_line) in \
enumerate(zip_longest(exp_lines, user_lines)):
- if (not user_line or not expected_line or
- user_line.strip() != expected_line.strip()):
+ if user_line != expected_line:
err_line_numbers.append(line_no)
return err_line_numbers