Mercurial > hg
changeset 31352:667e88568087
manifest: unbreak pure-python manifest parsing on Python 3
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 12 Mar 2017 00:44:21 -0500 |
parents | 5da0c7888dc4 |
children | 089e37802fb3 |
files | mercurial/manifest.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/manifest.py Sun Mar 12 00:43:47 2017 -0500 +++ b/mercurial/manifest.py Sun Mar 12 00:44:21 2017 -0500 @@ -172,7 +172,7 @@ if not data: return [] pos = data.find("\n") - if pos == -1 or data[-1] != '\n': + if pos == -1 or data[-1:] != '\n': raise ValueError("Manifest did not end in a newline.") positions = [0] prev = data[:data.find('\x00')]