diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-09-11 11:23:24 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@araneo.org> | 2015-09-11 11:23:24 +0200 |
commit | f42daa8b31b5772f60d8d8656ad2a5d5d6fd6f67 (patch) | |
tree | 1b2d75e99eb6189dc72de2b60836b41afc5fd354 /python/common.py | |
parent | 046463bcebe08c6cbe3504d676c0bf27f8695482 (diff) |
Replace session parameter with Python run function
In hint and test functions, we don't need any session data except the
Python runner.
Diffstat (limited to 'python/common.py')
-rw-r--r-- | python/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/common.py b/python/common.py index 39c323f..5ce2eb3 100644 --- a/python/common.py +++ b/python/common.py @@ -9,7 +9,7 @@ hint_type = { 'syntax_error': Hint('syntax_error'), } -def hint(program): +def hint(python, program): # Check program for syntax errors. try: tree = ast.parse(program, filename='user') |