Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: tools/telemetry/third_party/gsutilz/third_party/apitools/apitools/base/py/list_pager.py

Issue 1376593003: Roll gsutil version to 4.15. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/third_party/gsutilz/third_party/apitools/apitools/base/py/list_pager.py
diff --git a/tools/telemetry/third_party/gsutilz/third_party/apitools/apitools/base/py/list_pager.py b/tools/telemetry/third_party/gsutilz/third_party/apitools/apitools/base/py/list_pager.py
old mode 100755
new mode 100644
index cf90389f8819ca44e6b121d0b838b7f163849553..85c25945f0d3ce6bc0982820936198ad30462379
--- a/tools/telemetry/third_party/gsutilz/third_party/apitools/apitools/base/py/list_pager.py
+++ b/tools/telemetry/third_party/gsutilz/third_party/apitools/apitools/base/py/list_pager.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
"""A helper function that executes a series of List queries for many APIs."""
-import copy
+from apitools.base.py import encoding
__all__ = [
'YieldFromList',
@@ -41,7 +41,7 @@ def YieldFromList(
protorpc.message.Message, The resources listed by the service.
"""
- request = copy.deepcopy(request)
+ request = encoding.CopyProtoMessage(request)
setattr(request, batch_size_attribute, batch_size)
setattr(request, current_token_attribute, None)
while limit is None or limit:

Powered by Google App Engine
This is Rietveld 408576698