Skip to content

Commit 37081d2

Browse files
committed
minor cleanup
1 parent c2be211 commit 37081d2

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

pythonwhat/check_funcs.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ def check_part_index(name, index, part_msg,
5353

5454
# check there are enough parts for index
5555
has_part(name, missing_msg, state, append_message['kwargs'], index)
56-
#stu_parts = state.student_parts[name]
57-
#try: stu_parts[index]
58-
#except (KeyError, IndexError):
59-
# _msg = state.build_message(missing_msg, append_message['kwargs'])
60-
# rep.do_test(Test(Feedback(_msg, state.highlight)))
6156

6257
# get part at index
6358
stu_part = state.student_parts[name][index]

pythonwhat/parsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ def visit_With(self, node):
788788
"context": context,
789789
"body": {'node': node.body, 'with_items': items},
790790
"node": node,
791-
"n_vars": len(items),
791+
"n_vars": len(items)
792792
})
793793

794794
class TryExceptParser(Parser):

0 commit comments

Comments
 (0)