From 72a6e5e4dfbe545e75ea01fa4abc7c61e366759a Mon Sep 17 00:00:00 2001 From: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> Date: Tue, 9 Oct 2018 10:48:51 -0700 Subject: [PATCH] Fix linting issues. --- spanner/cloud-client/snippets.py | 8 ++++---- spanner/cloud-client/snippets_test.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spanner/cloud-client/snippets.py b/spanner/cloud-client/snippets.py index a61de6a59b62..d2ba264fe74f 100644 --- a/spanner/cloud-client/snippets.py +++ b/spanner/cloud-client/snippets.py @@ -815,8 +815,8 @@ def update_data_with_dml_timestamp(instance_id, database_id): def update_albums(transaction): row_ct = transaction.execute_update( "UPDATE Albums " - "SET LastUpdateTime = PENDING_COMMIT_TIMESTAMP() " - "WHERE SingerId = 1" + "SET LastUpdateTime = PENDING_COMMIT_TIMESTAMP() " + "WHERE SingerId = 1" ) print("{} record(s) updated.".format(row_ct)) @@ -836,7 +836,7 @@ def read_then_write(transaction): # Insert record. row_ct = transaction.execute_update( "INSERT Singers (SingerId, FirstName, LastName) " - " VALUES (11, 'Timothy', 'Campbell')" + " VALUES (11, 'Timothy', 'Campbell')" ) print("{} record(s) inserted.".format(row_ct)) @@ -949,7 +949,7 @@ def transfer_budget(transaction): params={"AlbumBudget": second_album_budget}, param_types={"AlbumBudget": spanner.param_types.INT64} ) - + print("Transferred {} from Album1's budget to Album2's".format( transfer_amount)) diff --git a/spanner/cloud-client/snippets_test.py b/spanner/cloud-client/snippets_test.py index 794e26a6048b..b0fb5d2b5afd 100644 --- a/spanner/cloud-client/snippets_test.py +++ b/spanner/cloud-client/snippets_test.py @@ -269,4 +269,4 @@ def update_data_with_partitioned_dml(capsys): def delete_data_with_partitioned_dml(capsys): snippets.delete_data_with_partitioned_dml(INSTANCE_ID, DATABASE_ID) out, _ = capsys.readouterr() - assert "1 record(s) deleted" in out \ No newline at end of file + assert "1 record(s) deleted" in out