From a3cfe0abbedd22a97640bdee92db53c358349d45 Mon Sep 17 00:00:00 2001 From: me Date: Fri, 31 Jan 2020 11:47:21 +0200 Subject: [PATCH] create variable just before using it --- bumblebee/output.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bumblebee/output.py b/bumblebee/output.py index c36a37e..73654bf 100644 --- a/bumblebee/output.py +++ b/bumblebee/output.py @@ -365,8 +365,6 @@ class WidgetDrawer(object): separator = self._theme.separator(widget) self.add_separator(widget, separator) - full_text = widget.full_text() - padding = self._theme.padding(widget) self._prefix = self._theme.prefix(widget, padding) @@ -382,6 +380,8 @@ class WidgetDrawer(object): self._prefix ) + full_text = widget.full_text() + if self._prefix: full_text = u"{}{}".format(self._prefix, full_text) if self._suffix: