diff options
author | Martin <martin@leo.fri1.uni-lj.si> | 2015-09-29 10:30:10 +0200 |
---|---|---|
committer | Martin <martin@leo.fri1.uni-lj.si> | 2015-09-29 10:30:10 +0200 |
commit | 1db5b636325141db84e03f0a72a6e8cc7bcb2ee2 (patch) | |
tree | 186471c5a998c7e483fa3eb1915d86d6aa15fcac /python/problems/introduction/fast_fingers_2/common.py | |
parent | d06dade8c75dfa5aceacaf1a1b47f61c5fef31c4 (diff) |
Small corrections to text; mostly changing plural form to singular.
Diffstat (limited to 'python/problems/introduction/fast_fingers_2/common.py')
-rw-r--r-- | python/problems/introduction/fast_fingers_2/common.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/python/problems/introduction/fast_fingers_2/common.py b/python/problems/introduction/fast_fingers_2/common.py index 958940d..386e251 100644 --- a/python/problems/introduction/fast_fingers_2/common.py +++ b/python/problems/introduction/fast_fingers_2/common.py @@ -31,9 +31,6 @@ random.randint = lambda x, y: {} hint_type = { 'random': Hint('random'), - 'name_error': Hint('name_error'), - 'type_error': Hint('type_error'), - 'error': Hint('error'), 'if_clause': Hint('if_clause'), 'final_hint': Hint('final_hint') } @@ -91,13 +88,7 @@ def hint(python, code): exc = answer[0][3] exc_hint = get_exception_desc(answer[0][3]) # if have an exception! - if exc: - if 'NameError' in exc: - return [{'id':'name_error', 'args': {'message': exc}}] - elif 'TypeError' in exc: - return [{'id':'type_error', 'args': {'message': exc}}] - else: - return exc_hint + return exc_hint # First: if student does not import random, tell him about that module if not has_token_sequence(tokens, ['random']) or \ |