Commit 505885a1 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[algorithm] Code cleanup

parent e6f953cd
......@@ -66,7 +66,9 @@ from beat.backend.python.algorithm import Algorithm as BackendAlgorithm
def load_algorithm_prototype(prefix):
prototype_data = pkg_resources.resource_string(__name__, "prototypes/algorithm.json")
prototype_data = pkg_resources.resource_string(
__name__, "prototypes/algorithm.json"
if sys.version_info < (3, 6):
prototype_data = prototype_data.decode("utf-8")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment