From f0492c2f8fdfa7e8e06231ff65dd759a8d776b23 Mon Sep 17 00:00:00 2001 From: Alexander Cherniuk Date: Sat, 3 Apr 2010 20:23:15 +0300 Subject: [PATCH] Fixed the pattern to be PEP8 compatible --- src/tooltips.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/tooltips.py b/src/tooltips.py index 04c7fc548..424855b80 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -186,22 +186,18 @@ class BaseTooltip: """ formatted = "%s" if status.startswith(_("Available")): - return formatted % ('#73D216', status) + status = formatted % ('#73D216', status) elif status.startswith(_("Free for Chat")): - return formatted % ('#3465A4', status) + status = formatted % ('#3465A4', status) elif status.startswith(_("Away")): - return formatted % ('#EDD400', status) + status = formatted % ('#EDD400', status) elif status.startswith(_("Busy")): - return formatted % ('#F57900', status) + status = formatted % ('#F57900', status) elif status.startswith(_("Not Available")): - return formatted % ('#CC0000', status) + status = formatted % ('#CC0000', status) elif status.startswith(_("Offline")): - return formatted % ('#555753', status) - else: - # A fallback reserved for probable changes that might occur - # in the future, so if status names will change -- tooltip - # population should not fail. - return status + status = formatted % ('#555753', status) + return status class StatusTable: """