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

Unified Diff: dashboard/dashboard/pinpoint/models/job.py

Issue 3011393002: [pinpoint] Docstrings for models/change/repository.py. (Closed)
Patch Set: "current canonical" Created 3 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
« no previous file with comments | « dashboard/dashboard/pinpoint/models/change/repository.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/pinpoint/models/job.py
diff --git a/dashboard/dashboard/pinpoint/models/job.py b/dashboard/dashboard/pinpoint/models/job.py
index ebf63e87faf650f7860733b40877baa3f18b2c66..0228a25d29fec33e491cda5532ffae0f35c92518 100644
--- a/dashboard/dashboard/pinpoint/models/job.py
+++ b/dashboard/dashboard/pinpoint/models/job.py
@@ -249,6 +249,7 @@ class _JobState(object):
there's no way to pick additional Changes to try.
"""
# This loop adds Changes to the _changes list while looping through it.
+ # The Change insertion simultaneously uses and modifies the list indices.
# However, the loop index goes in reverse order and Changes are only added
# after the loop index, so the loop never encounters the modified items.
for index, change_b in reversed(tuple(self.Differences())):
« no previous file with comments | « dashboard/dashboard/pinpoint/models/change/repository.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698