summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-11-26 00:34:24 +0000
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-06-11 20:49:46 +0100
commit721756c5c1512e05f44637afe22b25506889d62a (patch)
tree844cc7cc72dada22fee69425eea513a8d03e08cf
parent140065b5804d945ec528dc45eb53848f14d60b5f (diff)
downloadpoezio-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.py2
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 + '}')