8000 Remove unnecessary list() call · johnmanong/python-docs-samples@2cd0cca · GitHub
[go: up one dir, main page]

Skip to content

Commit 2cd0cca

Browse files
authored
Remove unnecessary list() call
1 parent 21e632f commit 2cd0cca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bigquery/cloud-client/snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def list_rows(dataset_name, table_name, project=None):
126126
table.reload()
127127

128128
# Load at most 25 results.
129-
rows = list(itertools.islice(table.fetch_data(), 25))
129+
rows = itertools.islice(table.fetch_data(), 25)
130130

131131
# Use format to create a simple table.
132132
format_string = '{!s:<16} ' * len(table.schema)

0 commit comments

Comments
 (0)
0