Make poezio.windows.funcs more Cython-friendly.
This commit is contained in:
parent
140065b580
commit
721756c5c1
1 changed files with 1 additions and 1 deletions
|
@ -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 + '}')
|
||||
|
|
Loading…
Reference in a new issue