Skip to content

Commit 7b4e489

Browse files
tswastplamut
authored andcommitted
Remove unnecessary list() call
1 parent 5f13468 commit 7b4e489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/snippets/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)