From 879a94483411a5658befb3cec62a9b22adfece56 Mon Sep 17 00:00:00 2001 From: Lukas Pohlreich Date: Sat, 25 Oct 2014 14:39:39 +0200 Subject: [PATCH] Empty string is false --- rainbowstream/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rainbowstream/util.py b/rainbowstream/util.py index 81dddfd..8a33711 100644 --- a/rainbowstream/util.py +++ b/rainbowstream/util.py @@ -28,11 +28,11 @@ def format_prefix(listname = '', keyword = ''): formattedPrefix = c['PREFIX'] owner = '@' + c['original_name'] place = '' - if keyword != '': + if keyword: place = '/public' keyword = '#' + keyword - if listname != '': + if listname: owner, place = listname.split('/') place = "/" + place -- 2.25.1