bisect-kit: minor: rename local variable
avoid name conflict with bisect_kit.common
BUG=None
TEST=None
Change-Id: Ieb9c07768b5d1559db27615531b8bc50658e9695
Reviewed-on: https://chromium-review.googlesource.com/1525364
Commit-Ready: Kuang-che Wu <kcwu@chromium.org>
Tested-by: Kuang-che Wu <kcwu@chromium.org>
Reviewed-by: Chi-Ngai Wan <cnwan@google.com>
diff --git a/bisect_kit/codechange.py b/bisect_kit/codechange.py
index 5b4a095..3864693 100644
--- a/bisect_kit/codechange.py
+++ b/bisect_kit/codechange.py
@@ -228,21 +228,21 @@
logger.info('diff between %s and %s', self.name, rhs.name)
expect = set(self.entries)
actual = set(rhs.entries)
- common = 0
+ common_count = 0
for path in sorted(expect - actual):
logger.info('-%s', path)
for path in sorted(actual - expect):
logger.info('+%s', path)
for path in sorted(expect & actual):
if self[path] == rhs[path]:
- common += 1
+ common_count += 1
continue
if self[path].at != rhs[path].at:
logger.info(' %s: at %s vs %s', path, self[path].at, rhs[path].at)
if self[path].repo_url != rhs[path].repo_url:
logger.info(' %s: repo_url %s vs %s', path, self[path].repo_url,
rhs[path].repo_url)
- logger.info('and common=%s', common)
+ logger.info('and common=%s', common_count)
class Action(object):