From: Lukas Pohlreich Date: Sat, 25 Oct 2014 12:39:39 +0000 (+0200) Subject: Empty string is false X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=879a94483411a5658befb3cec62a9b22adfece56;p=rainbowstream.git Empty string is false --- 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