Update dict usage to be python3 compatible
Replace appengine/components/components/config/OWNERS dnj@ with tikuta@
Ran:
vi $(git grep --name-only '\.iteritems' | grep -v third_party)
vi $(git grep --name-only '\.itervalues' | grep -v third_party)
and replace iteritem() with items() and itervalues() with values(). In
theory it's slightly slower in python2 but it's going to be fast on
python3.
There should be no real functional change.
Bug: 1003186
Change-Id: I56859408236dc94fd0f0c5ecd769f821eec959f6
Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-py/+/1847188
Auto-Submit: Marc-Antoine Ruel <maruel@chromium.org>
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Marc-Antoine Ruel <maruel@chromium.org>
NOKEYCHECK=True
GitOrigin-RevId: bc192746221d96712e9a8656623da51b00cd481b
diff --git a/stream.py b/stream.py
index 7e02772..89bbe77 100644
--- a/stream.py
+++ b/stream.py
@@ -62,7 +62,7 @@
if self.tags is not None:
if not isinstance(self.tags, collections.Mapping):
raise ValueError('Invalid tags type (%s)' % (self.tags,))
- for k, v in self.tags.iteritems():
+ for k, v in self.tags.items():
streamname.validate_tag(k, v)
if self.tee not in (None, self.TEE_STDOUT, self.TEE_STDERR):