From 721756c5c1512e05f44637afe22b25506889d62a Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 26 Nov 2015 00:34:24 +0000 Subject: Make poezio.windows.funcs more Cython-friendly. --- poezio/windows/funcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/windows/funcs.py b/poezio/windows/funcs.py index cc48ffab..8fbeafe2 100644 --- a/poezio/windows/funcs.py +++ b/poezio/windows/funcs.py @@ -42,7 +42,7 @@ def parse_attrs(text, previous=None): attrs.append('u') elif attr_char == 'b': attrs.append('b') - if attr_char in string.digits and attr_char != '': + if attr_char in string.digits and attr_char: color_str = text[next_attr_char+1:text.find('}', next_attr_char)] if color_str: attrs.append(color_str + '}') -- cgit v1.2.3