Skip to content
Snippets Groups Projects
Commit 967b38d0 authored by David Trattnig's avatar David Trattnig
Browse files

Ability to print single entries.

parent 54b3f34c
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,6 @@ class EngineUtil: ...@@ -36,7 +36,6 @@ class EngineUtil:
""" """
A class for Engine utilities. A class for Engine utilities.
""" """
@staticmethod @staticmethod
def get_channel_type(uri): def get_channel_type(uri):
""" """
...@@ -61,9 +60,12 @@ class EngineUtil: ...@@ -61,9 +60,12 @@ class EngineUtil:
Returns a list of entries as String for logging purposes. Returns a list of entries as String for logging purposes.
""" """
s = "" s = ""
for entry in entries: if isinstance(entries, list):
s += str(entry) for entry in entries:
if entry != entries[-1]: s += ", " s += str(entry)
if entry != entries[-1]: s += ", "
else:
s = str(entries)
return s return s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment