aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/algorithms/registry.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-12-23 07:32:18 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-12-23 07:32:18 +0300
commit0d25b5d6957d76bab486e2279c99e130c19d5c31 (patch)
treec8c7d6fe4766470bda03e49a004afaa03c967b16 /algorithms/registry.py
parentTravis: add badge to README (diff)
downloadsorting-algorithms-0d25b5d6957d76bab486e2279c99e130c19d5c31.tar.gz
sorting-algorithms-0d25b5d6957d76bab486e2279c99e130c19d5c31.zip
pylint/pep8 fixes
Diffstat (limited to 'algorithms/registry.py')
-rw-r--r--algorithms/registry.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/algorithms/registry.py b/algorithms/registry.py
index 787fe49..3bc6495 100644
--- a/algorithms/registry.py
+++ b/algorithms/registry.py
@@ -5,10 +5,13 @@
from . import impl
+
_ALL_ALGORITHMS = impl.refresh_algorithms()
+
def get_codenames():
return _ALL_ALGORITHMS.keys()
+
def get(codename):
return _ALL_ALGORITHMS[codename]