This commit is contained in:
dece 2021-03-13 20:38:19 +01:00
parent 1ff23e58e8
commit 2767402d9f
4 changed files with 4 additions and 6 deletions

View file

@ -1,5 +1,4 @@
import argparse
import os
from bebop.browser import Browser
from bebop.fs import get_user_data_path

View file

@ -3,7 +3,6 @@
import curses
import curses.ascii
import curses.textpad
import typing
from bebop.links import Links
@ -129,7 +128,7 @@ class CommandLine:
return 1, None
try:
link_id = int(link_input)
except ValueError as exc:
except ValueError:
return 2, f"Invalid link ID {link_input}."
return 0, link_id

View file

@ -5,7 +5,7 @@ https://github.com/ActiveState/appdirs/blob/master/appdirs.py
"""
from os import getenv
from os.path import expanduser, join
from os.path import expanduser
from pathlib import Path

View file

@ -6,8 +6,8 @@ module. A renderer can then completely abstract the original document.
"""
import re
import typing
from dataclasses import dataclass
from typing import List
@dataclass
@ -31,7 +31,7 @@ class Link:
@dataclass
class Preformatted:
lines: typing.List[str]
lines: List[str]
FENCE = "```"