Skip to content

Commit 57fbe30

Browse files
dpebotJon Wayne Parrott
authored andcommitted
Auto-update dependencies. (GoogleCloudPlatform#1004)
* Auto-update dependencies. * Fix natural language samples * Fix pubsub iam samples * Fix language samples * Fix bigquery samples
1 parent f21866f commit 57fbe30

File tree

44 files changed

+62
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+62
-109
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Flask==0.12.2
2-
google-cloud-datastore==1.0.0
2+
google-cloud-datastore==1.1.0
33
gunicorn==19.7.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Flask==0.12.2
2-
google-cloud-pubsub==0.25.0
2+
google-cloud-pubsub==0.26.0
33
gunicorn==19.7.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Flask==0.12.2
2-
google-cloud-storage==1.1.1
2+
google-cloud-storage==1.2.0
33
gunicorn==19.7.1

auth/cloud-client/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-cloud-storage==1.1.1
1+
google-cloud-storage==1.2.0

bigquery/api/resources/data.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Gandalf, 2000, 140.0, 1
1+
Gandalf,2000,140.0,1

bigquery/cloud-client/async_query.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,9 @@ def async_query(query):
4848

4949
wait_for_job(query_job)
5050

51-
# Drain the query results by requesting a page at a time.
52-
query_results = query_job.results()
53-
page_token = None
54-
55-
while True:
56-
rows, total_rows, page_token = query_results.fetch_data(
57-
max_results=10,
58-
page_token=page_token)
59-
60-
for row in rows:
61-
print(row)
62-
63-
if not page_token:
64-
break
51+
rows = query_job.results().fetch_data(max_results=10)
52+
for row in rows:
53+
print(row)
6554

6655

6756
if __name__ == '__main__':

bigquery/cloud-client/query_params.py

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,10 @@ def wait_for_job(job):
4343

4444

4545
def print_results(query_results):
46-
"""Print the query results by requesting a page at a time."""
47-
page_token = None
48-
49-
while True:
50-
rows, total_rows, page_token = query_results.fetch_data(
51-
max_results=10,
52-
page_token=page_token)
53-
54-
for row in rows:
55-
print(row)
56-
57-
if not page_token:
58-
break
46+
"""Print the rows in the query's results."""
47+
rows = query_results.fetch_data(max_results=10)
48+
for row in rows:
49+
print(row)
5950

6051

6152
def query_positional_params(corpus, min_word_count):

bigquery/cloud-client/query_params_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ def test_query_named_params(capsys):
2828
corpus='romeoandjuliet',
2929
min_word_count=100)
3030
out, _ = capsys.readouterr()
31-
assert 'love' in out
31+
assert 'the' in out
3232

3333

3434
def test_query_positional_params(capsys):
3535
query_params.query_positional_params(
3636
corpus='romeoandjuliet',
3737
min_word_count=100)
3838
out, _ = capsys.readouterr()
39-
assert 'love' in out
39+
assert 'the' in out
4040

4141

4242
def test_query_struct_params(capsys):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
google-cloud-bigquery==0.24.0
1+
google-cloud-bigquery==0.25.0
22
google-auth-oauthlib==0.1.0
33
pytz==2017.2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Gandalf, 2000, 140.0, 1
1+
Gandalf,2000,140.0,1

0 commit comments

Comments
 (0)