Switch title handling to use unicode

This commit is contained in:
Kovid Goyal
2016-11-23 20:28:30 +05:30
parent 91f80a3c85
commit 101afd5031
3 changed files with 3 additions and 3 deletions

View File

@@ -266,7 +266,7 @@ class TestDataTypes(BaseTest):
def test_utils(self):
self.ae(tuple(map(wcwidth, 'a1\0')), (1, 1, 0, 2))
self.assertEqual(sanitize_title(b'a\0\01 \t\n\f\rb'), b'a b')
self.assertEqual(sanitize_title('a\0\01 \t\n\f\rb'), 'a b')
def test_color_profile(self):
c = ColorProfile()