Skip to content

Commit 16c1c06

Browse files
committed
style fixes
1 parent 802c841 commit 16c1c06

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

examples/query-service/basic_example.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ def main():
1919
pool = ydb.QuerySessionPool(driver)
2020
# with pool.checkout() as session:
2121
def callee(session):
22-
print("="*50)
22+
print("=" * 50)
2323
print("BEFORE ACTION")
2424
it = session.execute("""SELECT COUNT(*) FROM example;""")
2525
for result_set in it:
2626
print(f"rows: {str(result_set.rows)}")
2727

28-
print("="*50)
28+
print("=" * 50)
2929
print("INSERT WITH COMMIT TX")
3030
tx = session.transaction()
3131

@@ -38,13 +38,13 @@ def callee(session):
3838

3939
tx.commit()
4040

41-
print("="*50)
41+
print("=" * 50)
4242
print("AFTER COMMIT TX")
4343

4444
for result_set in session.execute("""SELECT COUNT(*) FROM example;"""):
4545
print(f"rows: {str(result_set.rows)}")
4646

47-
print("="*50)
47+
print("=" * 50)
4848
print("INSERT WITH ROLLBACK TX")
4949

5050
tx = session.transaction()
@@ -58,7 +58,7 @@ def callee(session):
5858

5959
tx.rollback()
6060

61-
print("="*50)
61+
print("=" * 50)
6262
print("AFTER ROLLBACK TX")
6363

6464
for result_set in session.execute("""SELECT COUNT(*) FROM example;"""):

ydb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from .tracing import * # noqa
2020
from .topic import * # noqa
2121
from .draft import * # noqa
22-
from .query import * # noqa
22+
from .query import * # noqa
2323

2424
try:
2525
import ydb.aio as aio # noqa

ydb/query/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ def create_execute_query_request(
155155
exec_mode: QueryExecMode = None,
156156
parameters: dict = None,
157157
concurrent_result_sets: bool = False,
158-
159158
):
160159
syntax = QuerySyntax.YQL_V1 if not syntax else syntax
161160
exec_mode = QueryExecMode.EXECUTE if not exec_mode else exec_mode

0 commit comments

Comments
 (0)