diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-18 08:04:56 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-18 08:04:56 +0100 |
commit | accf6ab7779d98e3fb0d4790dd2146b0061635a4 (patch) | |
tree | 7429b8e5340d7c9c1ea0dd9f35861a4cb9e1c6d7 /poezio/windows/text_win.py | |
parent | 73749091aec9b2e7780a4f913268bcfc73e86e1e (diff) | |
download | poezio-accf6ab7779d98e3fb0d4790dd2146b0061635a4.tar.gz poezio-accf6ab7779d98e3fb0d4790dd2146b0061635a4.tar.bz2 poezio-accf6ab7779d98e3fb0d4790dd2146b0061635a4.tar.xz poezio-accf6ab7779d98e3fb0d4790dd2146b0061635a4.zip |
Fix wrong tests for None.
Diffstat (limited to 'poezio/windows/text_win.py')
-rw-r--r-- | poezio/windows/text_win.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/windows/text_win.py b/poezio/windows/text_win.py index ef7e8f86..76c7d2d7 100644 --- a/poezio/windows/text_win.py +++ b/poezio/windows/text_win.py @@ -374,7 +374,7 @@ class TextWin(BaseTextWin): if get_theme().CHAR_TIME_RIGHT and message.str_time: offset += 1 lines = poopt.cut_text(txt, self.width - offset - 1) - prepend = default_color if default_color is None else '' + prepend = default_color if default_color else '' attrs = [] # type: List[str] for line in lines: saved = Line( @@ -626,7 +626,7 @@ class XMLTextWin(BaseTextWin): if get_theme().CHAR_TIME_RIGHT and message.str_time: offset += 1 lines = poopt.cut_text(txt, self.width - offset - 1) - prepend = default_color if default_color is not None else '' + prepend = default_color if default_color else '' attrs = [] # type: List[str] for line in lines: saved = Line( |