Skip to content

Commit

Permalink
[SuperSize] Fix BaseSizeInfo.ContainerForName().
Browse files Browse the repository at this point in the history
|container| should be |self.container|. This causes Diff() to fail in
SuperSize-console.

TBR=agrieve@chromium.org

Bug: 1040645
Change-Id: Ie82e63f6449b905e628ebf884fd157c603dc6bf7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2264753
Reviewed-by: Samuel Huang <huangs@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781937}
  • Loading branch information
samuelhuang authored and Commit Bot committed Jun 24, 2020
1 parent 5b2de21 commit 82f022a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/binary_size/libsupersize/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def metadata(self):
return [c.metadata for c in self.containers]

def ContainerForName(self, name, default=None):
return next((c for c in containers if c.name == name), default)
return next((c for c in self.containers if c.name == name), default)


class SizeInfo(BaseSizeInfo):
Expand Down

0 comments on commit 82f022a

Please sign in to comment.