Skip to content

Commit f7fdc6f

Browse files
committed
Py3k / lint fixes.
1 parent 9c5d6dc commit f7fdc6f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gcloud/bigquery/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ def _parse_access_grants(self, access):
290290
for grant in access:
291291
grant = grant.copy()
292292
role = grant.pop('role')
293-
entity_type, entity_id = grant.items()[0]
293+
entity_type, entity_id = list(grant.items())[0]
294294
result.append(
295-
AccessGrant(role, entity_type, grant[entity_type]))
295+
AccessGrant(role, entity_type, entity_id))
296296
return result
297297

298298
def _set_properties(self, api_response):

gcloud/bigquery/test_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _verifyAccessGrants(self, access_grants, resource):
8181
role = r_grant.pop('role')
8282
self.assertEqual(a_grant.role, role)
8383
self.assertEqual(len(r_grant), 1)
84-
entity_type, entity_id = r_grant.items()[0]
84+
entity_type, entity_id = list(r_grant.items())[0]
8585
self.assertEqual(a_grant.entity_type, entity_type)
8686
self.assertEqual(a_grant.entity_id, entity_id)
8787

0 commit comments

Comments
 (0)