diff options
author | ankitjavalkar | 2016-09-21 15:07:43 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-09-30 10:33:42 +0530 |
commit | ac8d6720bc75676e05462cc38ad144d5aedc14e7 (patch) | |
tree | e2e527e159a0704ecdaa2f15ae13900f4555ea63 /yaksh/language_registry.py | |
parent | 6b08e56fe3cf70ffbcbd1ed432dde25babe48148 (diff) | |
download | online_test-ac8d6720bc75676e05462cc38ad144d5aedc14e7.tar.gz online_test-ac8d6720bc75676e05462cc38ad144d5aedc14e7.tar.bz2 online_test-ac8d6720bc75676e05462cc38ad144d5aedc14e7.zip |
Migrate python code server and evaluators to python 2/3 compatible
Diffstat (limited to 'yaksh/language_registry.py')
-rw-r--r-- | yaksh/language_registry.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/yaksh/language_registry.py b/yaksh/language_registry.py index 398e1aa..5b2b519 100644 --- a/yaksh/language_registry.py +++ b/yaksh/language_registry.py @@ -1,6 +1,10 @@ -from settings import code_evaluators +from __future__ import absolute_import import importlib import json +import six + +# Local imports +from .settings import code_evaluators registry = None @@ -24,7 +28,7 @@ def create_evaluator_instance(language, test_case_type, json_data, in_dir): class _LanguageRegistry(object): def __init__(self): self._register = {} - for language, module in code_evaluators.iteritems(): + for language, module in six.iteritems(code_evaluators): self._register[language] = None # Public Protocol ########## |