diff options
Diffstat (limited to 'testapp/exam/language_registry.py')
-rw-r--r-- | testapp/exam/language_registry.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/testapp/exam/language_registry.py b/testapp/exam/language_registry.py index 207cd21..4d56de2 100644 --- a/testapp/exam/language_registry.py +++ b/testapp/exam/language_registry.py @@ -1,16 +1,17 @@ #!/usr/bin/env python + class LanguageRegistry(object): def __init__(self): self._registry = {} - ## Public Protocol ########## + # Public Protocol ########## def get_class(self, language): return self._registry[language] - ## Public Protocol ########## + # Public Protocol ########## def register(self, language, cls): self._registry[language] = cls -registry = LanguageRegistry()
\ No newline at end of file +registry = LanguageRegistry() |