diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-11-26 00:34:24 +0000 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-06-11 20:49:46 +0100 |
commit | 721756c5c1512e05f44637afe22b25506889d62a (patch) | |
tree | 844cc7cc72dada22fee69425eea513a8d03e08cf | |
parent | 140065b5804d945ec528dc45eb53848f14d60b5f (diff) | |
download | poezio-721756c5c1512e05f44637afe22b25506889d62a.tar.gz poezio-721756c5c1512e05f44637afe22b25506889d62a.tar.bz2 poezio-721756c5c1512e05f44637afe22b25506889d62a.tar.xz poezio-721756c5c1512e05f44637afe22b25506889d62a.zip |
Make poezio.windows.funcs more Cython-friendly.
-rw-r--r-- | poezio/windows/funcs.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 + '}') |