diff options
author | adityacp | 2017-01-02 15:26:18 +0530 |
---|---|---|
committer | adityacp | 2017-01-02 15:26:18 +0530 |
commit | 6893398a9a0dd8dcfb4c5d75a1bb75774a369dc8 (patch) | |
tree | 01ffed1a2f839fc66a6fe2082de92a6c2d14781d /yaksh | |
parent | a013dcfda0cd73d77faedc32d0f81eb557fdbbad (diff) | |
download | online_test-6893398a9a0dd8dcfb4c5d75a1bb75774a369dc8.tar.gz online_test-6893398a9a0dd8dcfb4c5d75a1bb75774a369dc8.tar.bz2 online_test-6893398a9a0dd8dcfb4c5d75a1bb75774a369dc8.zip |
Remove unused argument from functions
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/code_server.py | 2 | ||||
-rw-r--r-- | yaksh/xmlrpc_clients.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/code_server.py b/yaksh/code_server.py index 4db5810..834c5af 100644 --- a/yaksh/code_server.py +++ b/yaksh/code_server.py @@ -81,7 +81,7 @@ class CodeServer(object): self.queue = queue # Public Protocol ########## - def check_code(self, language, test_case_type, json_data, in_dir=None): + def check_code(self, language, json_data, in_dir=None): """Calls relevant EvaluateCode class based on language to check the answer code """ diff --git a/yaksh/xmlrpc_clients.py b/yaksh/xmlrpc_clients.py index fbcd6a5..54b2dd3 100644 --- a/yaksh/xmlrpc_clients.py +++ b/yaksh/xmlrpc_clients.py @@ -32,7 +32,7 @@ class CodeServerProxy(object): pool_url = 'http://localhost:%d' % (SERVER_POOL_PORT) self.pool_url = pool_url - def run_code(self, language, test_case_type, json_data, user_dir): + def run_code(self, language, json_data, user_dir): """Tests given code (`answer`) with the `test_code` supplied. If the optional `in_dir` keyword argument is supplied it changes the directory to that directory (it does not change it back to the original when @@ -65,7 +65,7 @@ class CodeServerProxy(object): try: server = self._get_server() - result = server.check_code(language, test_case_type, json_data, user_dir) + result = server.check_code(language, json_data, user_dir) except ConnectionError: result = json.dumps({'success': False, 'weight': 0.0, |