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

Unified Diff: third_party/gsutil/third_party/apitools/apitools/base/py/list_pager.py

Issue 1380943003: Roll version of gsutil to 4.15. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: rebase Created 5 years 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: third_party/gsutil/third_party/apitools/apitools/base/py/list_pager.py
diff --git a/third_party/gsutil/third_party/apitools/apitools/base/py/list_pager.py b/third_party/gsutil/third_party/apitools/apitools/base/py/list_pager.py
old mode 100755
new mode 100644
index cf90389f8819ca44e6b121d0b838b7f163849553..85c25945f0d3ce6bc0982820936198ad30462379
--- a/third_party/gsutil/third_party/apitools/apitools/base/py/list_pager.py
+++ b/third_party/gsutil/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