From 2abe061422e4b8db75097c16ddfd07f4625dfd76 Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 8 Sep 2021 21:29:56 +0200 Subject: [PATCH] Further isort implementation --- morss/cli.py | 7 +++---- morss/readabilite.py | 4 +++- setup.py | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/morss/cli.py b/morss/cli.py index a9de7b4..94c22fd 100644 --- a/morss/cli.py +++ b/morss/cli.py @@ -15,12 +15,11 @@ # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . -import sys -import os.path import argparse +import os.path +import sys -from .morss import FeedFetch, FeedGather, FeedFormat -from .morss import Options +from .morss import FeedFetch, FeedFormat, FeedGather, Options def cli_app(): diff --git a/morss/readabilite.py b/morss/readabilite.py index a261798..b9709fb 100644 --- a/morss/readabilite.py +++ b/morss/readabilite.py @@ -15,10 +15,11 @@ # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . +import re + import lxml.etree import lxml.html from bs4 import BeautifulSoup -import re def parse(data, encoding=None): @@ -352,6 +353,7 @@ def get_article(data, url=None, encoding_in=None, encoding_out='unicode', debug= if __name__ == '__main__': import sys + from . import crawler req = crawler.adv_get(sys.argv[1] if len(sys.argv) > 1 else 'https://morss.it') diff --git a/setup.py b/setup.py index 4817dc3..9b584ad 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ -from setuptools import setup from glob import glob +from setuptools import setup + package_name = 'morss' setup(