Fix lint
This commit is contained in:
parent
272eb28d7b
commit
4daf4a8e64
@ -213,7 +213,8 @@ def qute_help(win_id, request):
|
||||
if urlpath.endswith('.png'):
|
||||
return utils.read_file(path, binary=True)
|
||||
else:
|
||||
return utils.read_file(path).encode('UTF-8', errors='xmlcharrefreplace')
|
||||
data = utils.read_file(path)
|
||||
return data.encode('UTF-8', errors='xmlcharrefreplace')
|
||||
|
||||
|
||||
@add_handler('settings')
|
||||
|
@ -87,7 +87,6 @@ class AsciiDoc:
|
||||
files.append((src, dst))
|
||||
|
||||
# patch image links to use local copy
|
||||
modified_files = []
|
||||
replacements = [
|
||||
("http://qutebrowser.org/img/cheatsheet-big.png",
|
||||
"qute://help/img/cheatsheet-big.png"),
|
||||
|
Loading…
Reference in New Issue
Block a user