Make poezio.windows.funcs more Cython-friendly.

This commit is contained in:
Emmanuel Gil Peyrot 2015-11-26 00:34:24 +00:00
parent 140065b580
commit 721756c5c1

View file

@ -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 + '}')