diff --git a/lib/galaxy/managers/forms.py b/lib/galaxy/managers/forms.py index f6bf53ae9ade..989a7310fe65 100644 --- a/lib/galaxy/managers/forms.py +++ b/lib/galaxy/managers/forms.py @@ -1,8 +1,5 @@ from sqlalchemy import select -from sqlalchemy.orm import ( - exc as sqlalchemy_exceptions, - Session, -) +from sqlalchemy.orm import exc as sqlalchemy_exceptions from galaxy.exceptions import ( InconsistentDatabase, diff --git a/lib/galaxy/webapps/galaxy/controllers/admin.py b/lib/galaxy/webapps/galaxy/controllers/admin.py index ca634743daf0..7c16588a2181 100644 --- a/lib/galaxy/webapps/galaxy/controllers/admin.py +++ b/lib/galaxy/webapps/galaxy/controllers/admin.py @@ -13,10 +13,7 @@ util, web, ) -from galaxy.exceptions import ( - ActionInputError, - MessageException, -) +from galaxy.exceptions import ActionInputError from galaxy.managers.quotas import QuotaManager from galaxy.model import tool_shed_install as install_model from galaxy.model.base import transaction @@ -37,7 +34,6 @@ time_ago, ) from galaxy.webapps.base import controller -from tool_shed.util.web_util import escape log = logging.getLogger(__name__) diff --git a/lib/galaxy/webapps/galaxy/controllers/forms.py b/lib/galaxy/webapps/galaxy/controllers/forms.py index 25bafe0604ed..264924cce7de 100644 --- a/lib/galaxy/webapps/galaxy/controllers/forms.py +++ b/lib/galaxy/webapps/galaxy/controllers/forms.py @@ -3,16 +3,12 @@ import logging import re -from markupsafe import escape from sqlalchemy import ( false, true, ) -from galaxy import ( - model, - util, -) +from galaxy import model from galaxy.model.base import transaction from galaxy.model.index_filter_util import ( raw_text_column_filter, @@ -23,11 +19,7 @@ parse_filters_structured, RawTextTerm, ) -from galaxy.web.framework.helpers import ( - grids, - iff, - time_ago, -) +from galaxy.web.framework.helpers import grids from galaxy.webapps.base.controller import ( BaseUIController, web, diff --git a/lib/galaxy/webapps/galaxy/controllers/visualization.py b/lib/galaxy/webapps/galaxy/controllers/visualization.py index 01070bd22de5..09f5db76ab2b 100644 --- a/lib/galaxy/webapps/galaxy/controllers/visualization.py +++ b/lib/galaxy/webapps/galaxy/controllers/visualization.py @@ -7,20 +7,14 @@ HTTPNotFound, ) from sqlalchemy import ( - desc, false, or_, text, true, ) -from sqlalchemy.orm import ( - joinedload, - undefer, -) from galaxy import ( model, - util, web, ) from galaxy.managers.hdas import HDAManager @@ -31,17 +25,13 @@ UsesItemRatings, ) from galaxy.structured_app import StructuredApp -from galaxy.util import ( - sanitize_text, - unicodify, -) +from galaxy.util import unicodify from galaxy.util.sanitize_html import sanitize_html from galaxy.visualization.data_providers.phyloviz import PhylovizDataProvider from galaxy.visualization.genomes import ( decode_dbkey, GenomeRegion, ) -from galaxy.visualization.plugins import registry from galaxy.web.framework.helpers import ( grids, time_ago,