summaryrefslogtreecommitdiff
path: root/yaksh/language_registry.py
diff options
context:
space:
mode:
authorankitjavalkar2016-03-29 19:00:12 +0530
committerankitjavalkar2016-05-05 19:00:33 +0530
commite8e6b4bc35c7d012d9c41fb37d91687eb605b56c (patch)
tree2f0488eaed410e23a5d0e0a18b9bdae1e2b2f2d1 /yaksh/language_registry.py
parent1f4542cdbea66899899b9c7de3ea38e39d794112 (diff)
downloadonline_test-e8e6b4bc35c7d012d9c41fb37d91687eb605b56c.tar.gz
online_test-e8e6b4bc35c7d012d9c41fb37d91687eb605b56c.tar.bz2
online_test-e8e6b4bc35c7d012d9c41fb37d91687eb605b56c.zip
- Refactor Scilab, Bash, Java and C
- Add Test Cases to reflect refactoring changes - Fix language registry - Add test case for language registry - Fix register in settings - Keep snippet field for now
Diffstat (limited to 'yaksh/language_registry.py')
-rw-r--r--yaksh/language_registry.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/language_registry.py b/yaksh/language_registry.py
index 512e2f5..3205279 100644
--- a/yaksh/language_registry.py
+++ b/yaksh/language_registry.py
@@ -48,7 +48,7 @@ class _LanguageRegistry(object):
get_class = getattr(get_module, class_name)
return get_class
- def register(self, language, class_name):
+ def register(self, language, class_names):
""" Register a new code evaluator class for language"""
- self._register[language] = class_name
+ self._register[language] = class_names