diff --git a/qutebrowser/browser/qutescheme.py b/qutebrowser/browser/qutescheme.py index ac8caf6ee..d91022cca 100644 --- a/qutebrowser/browser/qutescheme.py +++ b/qutebrowser/browser/qutescheme.py @@ -32,7 +32,6 @@ import textwrap import urllib import collections import base64 -import os.path try: import secrets @@ -342,18 +341,10 @@ def qute_gpl(_url): def _asciidoc_fallback_path(html_path): """Fall back to plaintext asciidoc if the HTML is unavailable.""" asciidoc_path = html_path.replace('.html', '.asciidoc') - asciidoc_paths = [asciidoc_path] - if asciidoc_path.startswith('html/doc/'): - asciidoc_paths += [asciidoc_path.replace('html/doc/', '../doc/help/'), - asciidoc_path.replace('html/doc/', '../doc/')] - - for path in asciidoc_paths: - try: - return utils.read_file(os.path.normpath(path)) - except OSError: - pass - - return None + try: + return utils.read_file(path) + except OSError: + return None @add_handler('help')