1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-07-15 01:24:34 +02:00

added docstring to Logger. use generators.

This commit is contained in:
Alexander Graf
2021-02-22 20:35:23 +01:00
parent bde7a2b6c4
commit 0a9f732faa
2 changed files with 28 additions and 22 deletions

View File

@ -83,7 +83,7 @@ class CommaSeparatedList(db.TypeDecorator):
def process_result_value(self, value, dialect):
""" split comma separated string to list """
return list(filter(bool, [item.strip() for item in value.split(',')])) if value else []
return list(filter(bool, (item.strip() for item in value.split(',')))) if value else []
python_type = list