summaryrefslogtreecommitdiff
path: root/yaksh/language_registry.py
diff options
context:
space:
mode:
authorankitjavalkar2016-05-02 11:52:58 +0530
committerankitjavalkar2016-05-05 19:24:54 +0530
commit23b7abd3c1125e4c875e214e4f673c48c4bf4752 (patch)
treea76fccd392e054f33a3fc4bbd388c0aaa34bb40b /yaksh/language_registry.py
parentb40b668bcecd01b3c7f9f16b87775770ba06a33a (diff)
downloadonline_test-23b7abd3c1125e4c875e214e4f673c48c4bf4752.tar.gz
online_test-23b7abd3c1125e4c875e214e4f673c48c4bf4752.tar.bz2
online_test-23b7abd3c1125e4c875e214e4f673c48c4bf4752.zip
Remove commented code and cleanup
Diffstat (limited to 'yaksh/language_registry.py')
-rw-r--r--yaksh/language_registry.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/yaksh/language_registry.py b/yaksh/language_registry.py
index 3205279..398e1aa 100644
--- a/yaksh/language_registry.py
+++ b/yaksh/language_registry.py
@@ -3,12 +3,8 @@ import importlib
import json
registry = None
-
-# def set_registry():
-# global registry
-# registry = _LanguageRegistry()
-def get_registry(): #@@@get_evaluator_registry
+def get_registry():
global registry
if registry is None:
registry = _LanguageRegistry()
@@ -20,11 +16,9 @@ def unpack_json(json_data):
def create_evaluator_instance(language, test_case_type, json_data, in_dir):
"""Create instance of relevant EvaluateCode class based on language"""
- # set_registry()
registry = get_registry()
- cls = registry.get_class(language, test_case_type) #@@@get_evaluator_for_language
+ cls = registry.get_class(language, test_case_type)
instance = cls(in_dir)
- # instance = cls.from_json(language, json_data, in_dir)
return instance
class _LanguageRegistry(object):