Mercurial > hg-stable
changeset 37572:c6b8d614690a
diffhelpers: remove unused return value from fixnewline() and addlines()
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 09 Apr 2018 20:55:05 +0900 |
parents | 0ea8b9576d7c |
children | 49b82cdb5983 |
files | mercurial/diffhelpers.py |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/diffhelpers.py Mon Apr 09 20:54:00 2018 +0900 +++ b/mercurial/diffhelpers.py Mon Apr 09 20:55:05 2018 +0900 @@ -37,7 +37,6 @@ else: b.append(s[1:]) a.append(s) - return 0 def fixnewline(hunk, a, b): """Fix up the last lines of a and b when the patch has no newline at EOF""" @@ -53,7 +52,6 @@ if hline.startswith((' ', '-')): a[-1] = hline hunk[-1] = hline - return 0 def testhunk(a, b, bstart): """Compare the lines in a with the lines in b