clean
This commit is contained in:
parent
1ff23e58e8
commit
2767402d9f
|
@ -1,5 +1,4 @@
|
|||
import argparse
|
||||
import os
|
||||
|
||||
from bebop.browser import Browser
|
||||
from bebop.fs import get_user_data_path
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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 = "```"
|
||||
|
||||
|
||||
|
|
Reference in a new issue