Skip to content

Commit

Permalink
Rename function, fixes pudo#377.
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Jul 29, 2021
1 parent 41b7552 commit 7b90d76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dataset/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
import threading
from urllib.parse import parse_qs, urlparse

from sqlalchemy import create_engine
from sqlalchemy import create_engine, inspect
from sqlalchemy.sql import text
from sqlalchemy.schema import MetaData
from sqlalchemy.util import safe_reraise
from sqlalchemy.engine.reflection import Inspector
from sqlalchemy import event

from alembic.migration import MigrationContext
Expand Down Expand Up @@ -92,7 +91,7 @@ def op(self):
@property
def inspect(self):
"""Get a SQLAlchemy inspector."""
return Inspector.from_engine(self.executable)
return inspect(self.executable)

@property
def metadata(self):
Expand Down

0 comments on commit 7b90d76

Please sign in to comment.