Fix window title not correct

This commit is contained in:
Kovid Goyal 2016-11-18 15:43:09 +05:30
parent f5d041ac33
commit e73b30c663

View File

@ -95,6 +95,7 @@ def get_child_status():
except ChildProcessError:
del fork_child.pid
base_size = sys.getsizeof('')
@ -113,9 +114,7 @@ def timeit(name, do_timing=False):
def sanitize_title(x):
if isinstance(x, bytes):
x = x.decode('utf-8', 'replace')
return re.sub(r'\s+', ' ', re.sub(r'[\0-\x19]', '', x))
return re.sub(br'\s+', b' ', re.sub(br'[\0-\x19]', b'', x))
def get_logical_dpi():