diff options
| author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-23 07:32:18 +0300 |
|---|---|---|
| committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-23 07:32:18 +0300 |
| commit | 0d25b5d6957d76bab486e2279c99e130c19d5c31 (patch) | |
| tree | c8c7d6fe4766470bda03e49a004afaa03c967b16 /algorithms/registry.py | |
| parent | Travis: add badge to README (diff) | |
| download | sorting-algorithms-0d25b5d6957d76bab486e2279c99e130c19d5c31.tar.gz sorting-algorithms-0d25b5d6957d76bab486e2279c99e130c19d5c31.zip | |
pylint/pep8 fixes
Diffstat (limited to 'algorithms/registry.py')
| -rw-r--r-- | algorithms/registry.py | 3 |
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] |
