Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 590ea4b

Browse files
committed
style: fix formatting
1 parent 9dd4ab2 commit 590ea4b

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

google/cloud/spanner_v1/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
659659
if self._database.log_commit_stats:
660660
self._database.logger.info(
661661
"CommitStats: {}".format(self._batch.commit_stats),
662-
extra={"commit_stats": self._batch.commit_stats}
662+
extra={"commit_stats": self._batch.commit_stats},
663663
)
664664
self._database._pool.put(self._session)
665665

google/cloud/spanner_v1/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def run_in_transaction(self, func, *args, **kw):
360360
if self._database.log_commit_stats:
361361
self._database.logger.info(
362362
"CommitStats: {}".format(txn.commit_stats),
363-
extra={"commit_stats": txn.commit_stats}
363+
extra={"commit_stats": txn.commit_stats},
364364
)
365365
return return_value
366366

tests/unit/test_database.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,8 +1375,7 @@ def test_context_mgr_w_commit_stats(self):
13751375
)
13761376

13771377
database.logger.info.assert_called_once_with(
1378-
"CommitStats: mutation_count: 4\n",
1379-
extra={"commit_stats": commit_stats}
1378+
"CommitStats: mutation_count: 4\n", extra={"commit_stats": commit_stats}
13801379
)
13811380

13821381
def test_context_mgr_failure(self):

tests/unit/test_session.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,11 +1379,9 @@ def unit_of_work(txn, *args, **kw):
13791379
request=request, metadata=[("google-cloud-resource-prefix", database.name)],
13801380
)
13811381
database.logger.info.assert_called_once_with(
1382-
"CommitStats: mutation_count: 4\n",
1383-
extra={"commit_stats": commit_stats}
1382+
"CommitStats: mutation_count: 4\n", extra={"commit_stats": commit_stats}
13841383
)
13851384

1386-
13871385
def test_delay_helper_w_no_delay(self):
13881386
from google.cloud.spanner_v1.session import _delay_until_retry
13891387

0 commit comments

Comments
 (0)