This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] A filter is not a list, but silently casts to an empty list? WTF python?

Message ID
DKIM signature
Download raw message
Patch: +1 -1
 main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.py b/main.py
index 89dae6d..0199217 100644
--- a/main.py
+++ b/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
Reply to thread Export thread (mbox)