Mercurial > public > mercurial-scm > hg-stable
diff mercurial/diffhelpers.py @ 37574:a1bcc7ff0eac
diffhelpers: make return value of testhunk() more Pythonic
It's no longer C.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 09 Apr 2018 21:08:52 +0900 |
parents | 49b82cdb5983 |
children | 230eb9594150 |
line wrap: on
line diff
--- a/mercurial/diffhelpers.py Mon Apr 09 21:06:46 2018 +0900 +++ b/mercurial/diffhelpers.py Mon Apr 09 21:08:52 2018 +0900 @@ -70,8 +70,8 @@ alen = len(a) blen = len(b) if alen > blen - bstart: - return -1 + return False for i in xrange(alen): if a[i][1:] != b[i + bstart]: - return -1 - return 0 + return False + return True