diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-10 22:34:46 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-10 22:34:46 +0100 |
commit | 35c31d0a7de63ee8387823035be398f6d975b0e5 (patch) | |
tree | 38953b899050a294edeceddbcb903a93f8a9e6d7 | |
parent | cleaned imports (diff) | |
download | newspipe-35c31d0a7de63ee8387823035be398f6d975b0e5.tar.gz newspipe-35c31d0a7de63ee8387823035be398f6d975b0e5.tar.bz2 newspipe-35c31d0a7de63ee8387823035be398f6d975b0e5.zip |
removed unused imports
-rwxr-xr-x | manager.py | 2 | ||||
-rw-r--r-- | newspipe/bootstrap.py | 2 | ||||
-rw-r--r-- | newspipe/controllers/bookmark.py | 2 | ||||
-rw-r--r-- | newspipe/controllers/tag.py | 2 | ||||
-rw-r--r-- | newspipe/crawler/default_crawler.py | 4 | ||||
-rw-r--r-- | newspipe/models/article.py | 1 | ||||
-rw-r--r-- | newspipe/web/forms.py | 2 | ||||
-rw-r--r-- | newspipe/web/views/admin.py | 1 | ||||
-rw-r--r-- | newspipe/web/views/bookmark.py | 1 | ||||
-rw-r--r-- | newspipe/web/views/feed.py | 1 | ||||
-rw-r--r-- | newspipe/web/views/session_mgmt.py | 1 | ||||
-rw-r--r-- | newspipe/web/views/user.py | 1 |
12 files changed, 4 insertions, 16 deletions
@@ -10,7 +10,7 @@ from flask_script import Manager from werkzeug.security import generate_password_hash import newspipe.models -from newspipe.bootstrap import application, db, set_logging +from newspipe.bootstrap import application, db from newspipe.controllers import UserController logger = logging.getLogger("manager") diff --git a/newspipe/bootstrap.py b/newspipe/bootstrap.py index fd0577b3..c30cc631 100644 --- a/newspipe/bootstrap.py +++ b/newspipe/bootstrap.py @@ -7,7 +7,7 @@ import logging import os from flask import Flask, request -from flask_babel import Babel, format_datetime +from flask_babel import Babel from flask_sqlalchemy import SQLAlchemy diff --git a/newspipe/controllers/bookmark.py b/newspipe/controllers/bookmark.py index 41a59a56..be67614d 100644 --- a/newspipe/controllers/bookmark.py +++ b/newspipe/controllers/bookmark.py @@ -1,7 +1,5 @@ -import itertools import logging -from newspipe.bootstrap import db from newspipe.models import Bookmark from .abstract import AbstractController diff --git a/newspipe/controllers/tag.py b/newspipe/controllers/tag.py index 7a392949..a0bd1afd 100644 --- a/newspipe/controllers/tag.py +++ b/newspipe/controllers/tag.py @@ -1,7 +1,5 @@ -import itertools import logging -from newspipe.bootstrap import db from newspipe.models.tag import BookmarkTag from .abstract import AbstractController diff --git a/newspipe/crawler/default_crawler.py b/newspipe/crawler/default_crawler.py index 8408a845..a0b5566a 100644 --- a/newspipe/crawler/default_crawler.py +++ b/newspipe/crawler/default_crawler.py @@ -33,9 +33,8 @@ from datetime import datetime, timedelta import dateutil.parser import feedparser -from sqlalchemy import or_ -from newspipe.bootstrap import application, db +from newspipe.bootstrap import application from newspipe.controllers import ArticleController, FeedController from newspipe.lib.article_utils import ( construct_article, @@ -44,7 +43,6 @@ from newspipe.lib.article_utils import ( ) from newspipe.lib.feed_utils import construct_feed_from, is_parsing_ok from newspipe.lib.utils import newspipe_get -from newspipe.models import User logger = logging.getLogger(__name__) diff --git a/newspipe/models/article.py b/newspipe/models/article.py index 78efd9e2..09a39775 100644 --- a/newspipe/models/article.py +++ b/newspipe/models/article.py @@ -28,7 +28,6 @@ __license__ = "GPLv3" from datetime import datetime -from sqlalchemy import Index from sqlalchemy.ext.associationproxy import association_proxy from newspipe.bootstrap import db diff --git a/newspipe/web/forms.py b/newspipe/web/forms.py index cb02d1e6..ce7fd996 100644 --- a/newspipe/web/forms.py +++ b/newspipe/web/forms.py @@ -26,7 +26,7 @@ __revision__ = "$Date: 2015/05/06 $" __copyright__ = "Copyright (c) Cedric Bonhomme" __license__ = "GPLv3" -from flask import flash, redirect, url_for +from flask import redirect, url_for from flask_babel import lazy_gettext from flask_wtf import FlaskForm from werkzeug.exceptions import NotFound diff --git a/newspipe/web/views/admin.py b/newspipe/web/views/admin.py index f42f6938..2cddd4c6 100644 --- a/newspipe/web/views/admin.py +++ b/newspipe/web/views/admin.py @@ -5,7 +5,6 @@ from flask_babel import format_timedelta, gettext from flask_login import current_user, login_required from newspipe.controllers import UserController -from newspipe.lib.utils import redirect_url from newspipe.web.forms import InformationMessageForm, UserForm from newspipe.web.views.common import admin_permission diff --git a/newspipe/web/views/bookmark.py b/newspipe/web/views/bookmark.py index 5d7e3d2b..9cdfc31e 100644 --- a/newspipe/web/views/bookmark.py +++ b/newspipe/web/views/bookmark.py @@ -47,7 +47,6 @@ from newspipe.bootstrap import db from newspipe.controllers import BookmarkController, BookmarkTagController from newspipe.lib.data import export_bookmarks, import_pinboard_json from newspipe.lib.utils import redirect_url -from newspipe.models import BookmarkTag from newspipe.web.forms import BookmarkForm logger = logging.getLogger(__name__) diff --git a/newspipe/web/views/feed.py b/newspipe/web/views/feed.py index 10a86139..8e2c5d33 100644 --- a/newspipe/web/views/feed.py +++ b/newspipe/web/views/feed.py @@ -14,7 +14,6 @@ from flask import ( from flask_babel import gettext from flask_login import current_user, login_required from flask_paginate import Pagination, get_page_args -from sqlalchemy import desc from werkzeug.exceptions import BadRequest from newspipe.bootstrap import application diff --git a/newspipe/web/views/session_mgmt.py b/newspipe/web/views/session_mgmt.py index 801834ec..f8822255 100644 --- a/newspipe/web/views/session_mgmt.py +++ b/newspipe/web/views/session_mgmt.py @@ -20,7 +20,6 @@ from flask_principal import ( identity_loaded, session_identity_loader ) -from werkzeug.exceptions import NotFound from werkzeug.security import generate_password_hash from newspipe.bootstrap import application diff --git a/newspipe/web/views/user.py b/newspipe/web/views/user.py index 5addf80d..75f90a42 100644 --- a/newspipe/web/views/user.py +++ b/newspipe/web/views/user.py @@ -21,7 +21,6 @@ from newspipe.controllers import ( ) from newspipe.lib import misc_utils from newspipe.lib.data import import_json, import_opml -from newspipe.notifications import notifications from newspipe.web.forms import ProfileForm from newspipe.web.lib.user_utils import confirm_token |