Skip to content

Commit

Permalink
Fix linting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisvg committed Oct 9, 2018
1 parent 2cdd075 commit 72a6e5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions spanner/cloud-client/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))

Expand Down Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion spanner/cloud-client/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
assert "1 record(s) deleted" in out

0 comments on commit 72a6e5e

Please sign in to comment.