author | Augie Fackler <augie@google.com> |
Sun, 12 Mar 2017 00:44:21 -0500 | |
changeset 31352 | 667e88568087 |
parent 31351 | 5da0c7888dc4 |
child 31353 | 089e37802fb3 |
--- 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')]