Commit 721756c5 authored by Link Mauve's avatar Link Mauve
Browse files

Make more Cython-friendly.

parent 140065b5
......@@ -42,7 +42,7 @@ def parse_attrs(text, previous=None):
elif attr_char == '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 + '}')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment