Skip to content

Commit fcd7f7b

Browse files
committed
Removes extraneous comments and debug expressions
1 parent 5e6138e commit fcd7f7b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

google/cloud/bigquery/_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -977,11 +977,11 @@ def _build_resource_from_properties(obj, filter_fields):
977977
``filter_fields``, which follow the name of the Python object.
978978
"""
979979
partial = {}
980-
for filter_field in filter_fields: # "schema" in ["schema"]
981-
api_field = _get_sub_prop(obj._PROPERTY_TO_API_FIELD, filter_field) # "schema"
980+
for filter_field in filter_fields:
981+
api_field = _get_sub_prop(obj._PROPERTY_TO_API_FIELD, filter_field)
982982
if api_field is None and filter_field not in obj._properties:
983983
raise ValueError("No property %s" % filter_field)
984-
elif api_field is not None: # ["schema", "fields"]
984+
elif api_field is not None:
985985
if isinstance(api_field, list):
986986
api_field = api_field[0]
987987
partial[api_field] = obj._properties.get(api_field)

tests/unit/test_table.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,6 @@ def test_schema_setter_allows_unknown_properties(self):
739739
# Make sure the setter doesn't mutate schema.
740740
expected_schema = copy.deepcopy(schema)
741741

742-
print(f"DINOSAUR:\n{table._properties}\n{table.to_api_repr()}\n{schema}\n")
743-
744742
table.schema = schema
745743

746744
# _properties should include all fields, including unknown ones.

0 commit comments

Comments
 (0)