summaryrefslogtreecommitdiff
path: root/python/common.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-09-11 11:23:24 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-09-11 11:23:24 +0200
commitf42daa8b31b5772f60d8d8656ad2a5d5d6fd6f67 (patch)
tree1b2d75e99eb6189dc72de2b60836b41afc5fd354 /python/common.py
parent046463bcebe08c6cbe3504d676c0bf27f8695482 (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.py2
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')