Skip to content

Commit

Permalink
Remove unnecessary list() call
Browse files Browse the repository at this point in the history
  • Loading branch information
tswast authored Aug 22, 2017
1 parent 74d0871 commit d8be82a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/snippets/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def list_rows(dataset_name, table_name, project=None):
table.reload()

# Load at most 25 results.
rows = list(itertools.islice(table.fetch_data(), 25))
rows = itertools.islice(table.fetch_data(), 25)

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

0 comments on commit d8be82a

Please sign in to comment.