Skip to content

Commit

Permalink
remove unused imports (#3621)
Browse files Browse the repository at this point in the history
* superset: remove unused imports

Spotted by pyflakes

* superset: removed unused get_session
  • Loading branch information
xrmx authored and mistercrunch committed Oct 9, 2017
1 parent 912c6f6 commit 64ef8b1
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion superset/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ def index(self):

sm = appbuilder.sm

get_session = appbuilder.get_session
results_backend = app.config.get("RESULTS_BACKEND")

# Registering sources
Expand Down
1 change: 0 additions & 1 deletion superset/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from __future__ import unicode_literals

import logging
from celery.bin import worker as celery_worker
from datetime import datetime
from subprocess import Popen

Expand Down
4 changes: 2 additions & 2 deletions superset/connectors/druid/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import sqlalchemy as sa
from sqlalchemy import (
Column, Integer, String, ForeignKey, Text, Boolean,
DateTime, or_, and_,
DateTime, or_,
)
from sqlalchemy.orm import backref, relationship
from dateutil.parser import parse as dparse
Expand All @@ -30,7 +30,7 @@

from flask_babel import lazy_gettext as _

from superset import conf, db, import_util, utils, sm, get_session
from superset import conf, db, import_util, utils, sm
from superset.utils import (
flasher, MetricPermException, DimSelector, DTTM_ALIAS
)
Expand Down
2 changes: 0 additions & 2 deletions superset/connectors/druid/views.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from datetime import datetime
import logging

import sqlalchemy as sqla

from flask import Markup, flash, redirect
from flask_appbuilder import CompactCRUDMixin, expose
from flask_appbuilder.models.sqla.interface import SQLAInterface
Expand Down
2 changes: 0 additions & 2 deletions superset/connectors/sqla/views.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
"""Views used by the SqlAlchemy connector"""
import logging
from past.builtins import basestring

from flask import Markup, flash, redirect
from flask_appbuilder import CompactCRUDMixin, expose
from flask_appbuilder.models.sqla.interface import SQLAInterface
import sqlalchemy as sa

from flask_babel import lazy_gettext as _
from flask_babel import gettext as __
Expand Down

0 comments on commit 64ef8b1

Please sign in to comment.