Commit 7d3c9f6d authored by Gavin Mak's avatar Gavin Mak Committed by LUCI CQ

Add python3 support to gsutil recipe module

Bug: 1227140
Change-Id: I2a27289335c66f34adaa47be1e9fd0fd13abcc56
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3010716
Commit-Queue: Anthony Polito <apolito@google.com>
Reviewed-by: 's avatarAnthony Polito <apolito@google.com>
parent a138f082
......@@ -162,7 +162,7 @@ class GSUtilApi(recipe_api.RecipeApi):
def _generate_metadata_args(self, metadata):
result = []
if metadata:
for k, v in sorted(metadata.items(), key=lambda (k, _): k):
for k, v in sorted(metadata.items(), key=lambda k: k[0]):
field = self._get_metadata_field(k)
param = (field) if v is None else ('%s:%s' % (field, v))
result += ['-h', param]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment