Skip to content

Commit

Permalink
python 3.5 doesn't support f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
ShantanuKumar committed Apr 25, 2020
1 parent 5538469 commit 52e9c47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pandas_gbq/gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,9 @@ def schema(self, table_id):
Fields representing the schema
"""
if not self.exists(table_id):
raise NotFoundException(f"Table {table_id} does not exist")
raise NotFoundException(
"Table {0} does not exist".format(table_id)
)

original_schema = super(_Table, self).schema(self.dataset_id, table_id)
return original_schema
Expand Down
2 changes: 1 addition & 1 deletion tests/system/test_gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -1725,7 +1725,7 @@ def test_schema_is_not_overwritten(gbq_table, gbq_connector):
gbq_table.create(table_id, table_schema)
gbq.to_gbq(
pandas.DataFrame({"A": [1.0], "B": [2.0], "C": ["a"]}),
f"{gbq_table.dataset_id}.{table_id}",
"{0}.{1}".format(gbq_table.dataset_id, table_id),
project_id=gbq_connector.project_id,
if_exists="append",
)
Expand Down

0 comments on commit 52e9c47

Please sign in to comment.