From 739793e9bc562115a1d5b5be6f91c439398077e7 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 25 Oct 2015 13:17:35 +0000 Subject: Prefer '\0' to None or an empty string for single characters. --- poezio/windows/funcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poezio/windows/funcs.py') diff --git a/poezio/windows/funcs.py b/poezio/windows/funcs.py index f1401628..cc48ffab 100644 --- a/poezio/windows/funcs.py +++ b/poezio/windows/funcs.py @@ -35,7 +35,7 @@ def parse_attrs(text, previous=None): if next_attr_char + 1 < len(text): attr_char = text[next_attr_char+1].lower() else: - attr_char = str() + attr_char = '\0' if attr_char == 'o': attrs = [] elif attr_char == 'u': -- cgit v1.2.3