A filter is not a list, but silently casts to an empty list? WTF python?
This commit is contained in:
parent
57dad72d9b
commit
287b2cdbc4
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -176,7 +176,7 @@ def load_subscriptions(kind):
|
|||
print("No `channels.list` file to load for local subscriptions")
|
||||
subscriptions = []
|
||||
# Remove comment entries and empty lines
|
||||
return filter(lambda entry: entry != '', subscriptions)
|
||||
return list(filter(lambda entry: entry != '', subscriptions))
|
||||
|
||||
# Builds a unified id@server from one of those syntaxes, additionally stripping extra whitespace and ignoring `#` as comments:
|
||||
# - id@server
|
||||
|
|
Loading…
Reference in a new issue