Skip to content

Commit

Permalink
correct import for isort
Browse files Browse the repository at this point in the history
  • Loading branch information
ODD2 committed Jan 16, 2023
1 parent 7ccb59f commit 81d2641
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions databases/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
from types import TracebackType
from urllib.parse import SplitResult, parse_qsl, unquote, urlsplit

from pymysql.err import OperationalError
from sqlalchemy import text
from sqlalchemy.sql import ClauseElement

from databases.importer import import_from_string
from databases.interfaces import DatabaseBackend, Record

from pymysql.err import OperationalError

try: # pragma: no cover
import click

Expand Down Expand Up @@ -415,7 +414,7 @@ async def commit(self) -> None:
await self._transaction.commit()
await self._connection.__aexit__()

async def rollback(self,skip=False) -> None:
async def rollback(self, skip=False) -> None:
async with self._connection._transaction_lock:
assert self._connection._transaction_stack[-1] is self
self._connection._transaction_stack.pop()
Expand Down

0 comments on commit 81d2641

Please sign in to comment.