diff options
author | ankitjavalkar | 2015-04-26 21:13:53 +0530 |
---|---|---|
committer | ankitjavalkar | 2015-04-26 21:13:53 +0530 |
commit | 18df6d88a2e1a9dfe7d05ca97b2d69ff0569e088 (patch) | |
tree | 3a12a2497964c26f3750d81cf04e7953e795514a /testapp/exam/evaluate_c_code.py | |
parent | 8664a766406d6acf0d6a1688948153c407ea27f2 (diff) | |
download | online_test-18df6d88a2e1a9dfe7d05ca97b2d69ff0569e088.tar.gz online_test-18df6d88a2e1a9dfe7d05ca97b2d69ff0569e088.tar.bz2 online_test-18df6d88a2e1a9dfe7d05ca97b2d69ff0569e088.zip |
Make PEP8 consistent
Diffstat (limited to 'testapp/exam/evaluate_c_code.py')
-rw-r--r-- | testapp/exam/evaluate_c_code.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/testapp/exam/evaluate_c_code.py b/testapp/exam/evaluate_c_code.py index d52beae..0b9e352 100644 --- a/testapp/exam/evaluate_c_code.py +++ b/testapp/exam/evaluate_c_code.py @@ -13,7 +13,7 @@ from language_registry import registry class EvaluateCCode(EvaluateCode): """Tests the C code obtained from Code Server""" - ## Public Protocol ########## + # Public Protocol ########## def evaluate_code(self): submit_path = self.create_submit_code_file('submit.c') get_ref_path = self.ref_code_path @@ -25,8 +25,8 @@ class EvaluateCCode(EvaluateCode): c_ref_output_path = os.getcwd() + '/executable' # Set command variables - compile_command = 'g++ {0} -c -o {1}'.format(submit_path, - c_user_output_path) + compile_command = 'g++ {0} -c -o {1}'.format(submit_path, + c_user_output_path) compile_main = 'g++ {0} {1} -o {2}'.format(ref_path, c_user_output_path, c_ref_output_path) @@ -43,7 +43,7 @@ class EvaluateCCode(EvaluateCode): return success, err - ## Public Protocol ########## + # Public Protocol ########## def check_code(self, ref_code_path, submit_code_path, compile_command, compile_main, run_command_args, remove_user_output, remove_ref_output): @@ -122,8 +122,7 @@ class EvaluateCCode(EvaluateCode): return success, err - - ## Public Protocol ########## + # Public Protocol ########## def remove_null_substitute_char(self, string): """Returns a string without any null and substitute characters""" stripped = "" @@ -133,4 +132,4 @@ class EvaluateCCode(EvaluateCode): return ''.join(stripped) -registry.register('c', EvaluateCCode)
\ No newline at end of file +registry.register('c', EvaluateCCode) |